×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
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 Answer
Ans: 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 Answer
Ans: 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 Answer
Ans: 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 Answer
Ans: 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 Answer
Ans: Constructor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17