Font size
WorksheetsJava Fundamentals
Total questions: 11
Worksheet time: 8mins
Java was originally named
Oak
C++-++
Advanced C++
Coffee
Java is a (a) language
Choose the correct order of the Java program execution.
A. Class Loader
B. Interpretation
C. Compilation
D. Byte Code Verification
E. Java Source Code
F. Execution
E-C-A-D-B-F
A-C-B-D-F-E
E-C-B-A-D-F
E-B-C-A-D-F
Which of the following is used to load a .class file?
Class Loader
JIT compiler
Byte Code verifier
Interpreter
JVM stands for (a)
How many class files will be created for the following code?
class A { .... }
class B { .... }
public class C
{
public static void main(String args[])
{
...... } }
Note: Assume that A,B and C are in same file TestClass.java
1
2
3
0
Java is a pure object oriented programming language.
Yes
No
The keyword "method" is an another name for?
function
variable
class
object
Where does a java program starts its execution?
class
main
method
object
What will be the Output o the following code?
class Sample{
public static void main(String args[])
{
int len = args.length;
System.out.println(len);
}
}
Compilation Error
Runtime Error
The program compiles and executes successfully but prints nothing
The program compiles and executes successfully and prints 0
If we want to print "I am new to Java" in java, we have to write (a)
