wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Java Fundamentals

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

Java was originally named

a)

Oak

b)

C++-++

c)

Advanced C++

d)

Coffee

2.

Java is a (a)   language

3.

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

a)

E-C-A-D-B-F

b)

A-C-B-D-F-E

c)

E-C-B-A-D-F

d)

E-B-C-A-D-F

4.

Which of the following is used to load a .class file?

a)

Class Loader

b)

JIT compiler

c)

Byte Code verifier

d)

Interpreter

5.

JVM stands for (a)  

6.

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

a)

1

b)

2

c)

3

d)

0

7.

Java is a pure object oriented programming language.

a)

Yes

b)

No

8.

The keyword "method" is an another name for?

a)

function

b)

variable

c)

class

d)

object

9.

Where does a java program starts its execution?

a)

class

b)

main

c)

method

d)

object

10.

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);

}

}

a)

Compilation Error

b)

Runtime Error

c)

The program compiles and executes successfully but prints nothing

d)

The program compiles and executes successfully and prints 0

11.

If we want to print "I am new to Java" in java, we have to write (a)