CSE MCQs :: JAVA MCQs
- Which of these is a mechanism for naming and visibility control of a class and its content?
- Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
- Which of these access specifiers can be used for a class so that it's members can be accessed by a different class in the different package?
- Which of the following is correct way of importing an entire package 'pkg'?
- Which of the following is incorrect statement about packages?
- Which of the following package stores all the standard java classes?
-
What is the output of this program?package pkg;class output {public static void main(String args[]){StringBuffer s1 = new StringBuffer("Hello");s1.setCharAt(1, x);System.out.println(s1);}}