MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
Java
Quiz 3
1
2
3
4
5
6
7
8
9
Q.1
Which of this keyword must be used to inherit a class?
super
this
extend
extends
Q.2
The wrapping up of data and functions into a single unit is called
overloading
class
object
encapsulation
Q.3
What is the parent class of All Exceptions in JAVA
Throw
Exception
Error
Bug
Q.4
Choose the CORRECT exceptionString department="JTMK"; Integer no=Integer.parseInt(department);
ArithmeticException
NullPointerException
NumberFormatException
ArrayIndexOutOfBoundsException
Q.5
Evaluate the following Java expression, if x=y=and z=10:++z + y - y + z + x++
24
23
20
25
Q.6
What is the default value of a Boolean variable?
True
true
False
false
Q.7
Output of following Java program?class Test{ public static void main (String[] args) { int arr1[] = {3}; int arr2[] = {3}; if (arr1 == arr System.out.println("Same"); else System.out.println("Not same"); }}
Same
Not same
Error
Q.8
_____ is used to find and fix bugs in the Java programs.
JVM
JRE
JDK
JDB
Q.9
Which of the following is not a Java features?
Dynamic
Architecture Neutral
Use of pointers
Object-oriented
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page