NEW
Font size
WorksheetsJava Programming Quiz
Total questions: 10
Worksheet time: 10mins
Who invented Java Programming?
Guido van Rossum
James Gosling
Dennis Ritchie
Bjarne Stroustrup
Which statement is true about Java?
Java is a sequence-dependent programming language
Java is a code dependent programming language
Java is a platform-dependent programming language
Java is a platform-independent programming language
3. Which component is used to compile, debug and execute the java programs?
a) jdk
b)jvm
c)jre
d)jit
Which of these cannot be used for a variable name in Java?
identifier & keyword
b) identifier
c) keyword
d) none of the mentioned
a)identifier & keyword
b) identifier
c) keyword
d) none of the mentioned
What is the default value of a boolean variable in Java?
d) null
c) 0
b) false
a) true
Which of the following is not a valid Java identifier?
d) myVariable
c) 1stVariable
b) $myVariable
a) _myVariable
Which keyword is used to create a subclass in Java?
d) super
a) extends
b) implements
c) inherits
What is the main purpose of the Java Virtual Machine (JVM)?
a) To compile Java code
b) To execute Java bytecode
c) To provide a graphical user interface
d) To manage memory allocation
Which of the following is a feature of Java?
a) Automatic memory management
d) Pointers
b) Multiple inheritance through classes
c) Operator overloading
What is the size of an int variable in Java?
a) 8 bits
b) 16 bits
c) 32 bits
d) 64 bits
