Question No. 1
The given line of code will result in ________ System.out.println(5+9);
14
5
9
error
Question No. 2
The collection API are defined in _______ package.
java.io
java.util
java.awt
java.sql
Question No. 3
Which of the following feature is not included in Java?
Data encapsulation
Pointer manipulation
Question No. 4
To compare the values of two strings, _______ must be used
Question No. 5
What will happen if static modifier is removed from the signature of main method?
The program does not compile
he program compiles and runs successfully
Question No. 6
If a super class method is protected then overriding method _________
must be protected
must be public
Question No. 7
Which of the following is a valid variable name in Java?
long
NumberOfStudent
vu.506
1xu
Question No. 8
Which one of the following feature is not available in Java?
Multiple inheritance
Single inheritance
Question No. 9
A variable declared as static in a class is aan _________
Const variable
Global variable
Class variable
Question No. 10
To develop and execute a java program, it goes through _______ phases?
3
4
5
6
The given line of code will result in ________ System.out.println(5+9);
14
5
9
error
Question No. 2
The collection API are defined in _______ package.
java.io
java.util
java.awt
java.sql
Question No. 3
Which of the following feature is not included in Java?
Data encapsulation
Pointer manipulation
Question No. 4
To compare the values of two strings, _______ must be used
Question No. 5
What will happen if static modifier is removed from the signature of main method?
The program does not compile
he program compiles and runs successfully
Question No. 6
If a super class method is protected then overriding method _________
must be protected
must be public
Question No. 7
Which of the following is a valid variable name in Java?
long
NumberOfStudent
vu.506
1xu
Question No. 8
Which one of the following feature is not available in Java?
Multiple inheritance
Single inheritance
Question No. 9
A variable declared as static in a class is aan _________
Const variable
Global variable
Class variable
Question No. 10
To develop and execute a java program, it goes through _______ phases?
3
4
5
6
Comments
Post a Comment
Please give us your feedback & help us to improve this site.