wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

java - intro

Total questions: 11

Worksheet time: 5mins

Name
Class
Date
1.

Expand JVM

a)

Java Virtual Mean

b)

Java Virtual Machine

c)

Java Virtualization Machine

d)

Java Virtual Median

2.

Expand JIT

a)

Just InTake compiler

b)

Just In Time compiler

c)

Java InTime compiler

d)

Java InTake compiler

3.

Compilation statement in java

a)

java filename

b)

javac filename

c)

java filename.java

d)

javac filename.java

4.

Which statement is used to run the java program?

a)

javac filenemae.java

b)

java filename

c)

javac filename

d)

java filename.java

5.

java compiler converts the java file into _________ file.

a)

.jvm

b)

.class

c)

.obj

d)

.java

6.

.class file of any java program can run on any machine. Is it true or false

a)

true

b)

false

7.

WHICH OF THE FOLLOWING STATEMENTS ARE TRUE?

a)

JVM resides on RAM

b)

.class file can run on any platform

c)

Java is platform independent

d)

all the above

8.

public static void main(String args[]). In this statement what is args[]?

a)

name of a variable

b)

Array variable which is of string type

c)

variable

d)

string variable

9.

Which of the following is true?

a)

public static void main(String args[])

b)

public static void main(String a[])

c)

public static void main(String arg[])

d)

All the above

10.

Reason for declaring main() as static.

a)

to use static variable

b)

to use static methods inside main()

c)

Need not to create obj for accessing members of main()

d)

None of the above

11.

When command line arguments are passed to the main()?

a)

While declaring method

b)

During Compile time of the program

c)

During Runtime of the program

d)

When calling main()