Font size
WorksheetsOOPS MOCK QUIZ
Total questions: 10
Worksheet time: 5mins
Who invented JAVA programming?
Guido van Rossum
James Gosling
Dennis Ritchie
Bjarne Stroustrup
Which of the following is not an object-oriented programming language?
Objective C
C++
JAVA
Pascal
Which method can used to find the length of string?
stringlength()
length()
getLength()
getSize()
Which feature JAVA does not support?
Polymorphism
Inheritance
Pointer
Portable
Java is short of Javascript.
TRUE
FALSE
Default value of static integer variable of a class in java is
(a)
What is the default value of Boolean variable?
TRUE
FALSE
NULL
NOT DEFINED
Which component is used to compile, debug and execute the java programs?
JRE
JVM
JIT
JDK
Which method must be implemented by all threads?
wait()
run()
start()
stop()
class Main {
public static void main(String args[]) {
try {
throw 10;
}
catch(int e) {
System.out.println("Got the Exception " + e);
}
}
}
Got the Exception 10
Got the Exception 0
Compiler Error
Runtime Error
