41 .
Which of the following is incorrect statement about packages ?
A.packages defines a name space in which classes are stored.
B. A package can contain other package within it.
C. Java uses file system directories to store packages.
D.A package can be renamed without renaming the directory in which the classes are stored.
View AnswerAns: A package can be renamed without renaming the directory in which the classes are stored.
42 .
String a="abc "; System.out.println(a.length());
A.3
B. 4
C. 5
D.6
View AnswerAns: 4
43 .
Which of these is a mechanism for naming and visibility control of a class and its content ?
A.Object
B. Packages
C. Interfaces
D.None of the Mentioned.
View AnswerAns: None of the Mentioned.
44 .
Which of these is an incorrect statement ?
A.it is necessary to use new operator to initialize an array
B. Array can be initialized using comma separated expressions surrounded by curly braces.
C. Array can be initialized when they are declared.
D.None of the mention
View AnswerAns: it is necessary to use new operator to initialize an array
45 .
Which of the following method from super class which do not inherited in subclass ?
A.Constructor
B. Deconstructor
C. Copy constructor
D.None of these
View AnswerAns: Constructor