Login Or SignUp
Terms Of Service
Online Knowledge Sharing Platform
Which of the following is incorrect statement about packages ?
packages defines a name space in which classes are stored.
A package can contain other package within it.
Java uses file system directories to store packages.
A package can be renamed without renaming the directory in which the classes are stored.
Ans: A package can be renamed without renaming the directory in which the classes are stored.
String a="abc "; System.out.println(a.length());
Which of these is a mechanism for naming and visibility control of a class and its content ?
None of the Mentioned.
Ans: None of the Mentioned.
Which of these is an incorrect statement ?
it is necessary to use new operator to initialize an array
Array can be initialized using comma separated expressions surrounded by curly braces.
Array can be initialized when they are declared.
None of the mention
Ans: it is necessary to use new operator to initialize an array
Which of the following method from super class which do not inherited in subclass ?
None of these