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
Support mcqgeeks.com by disabling your adblocker.
Please disable the adBlock and continue. Thank you.