Programming - First Step towards Java Programming
You Are Here :: Home > JAVA > First Step towards Java Programming - General Questions
7. |
Java documentation comments are used to provide description for every feature in a java program.It creates a .php file called _______ document.
|
A. |
API(Application Programming Interface) |
B.
|
JVM(Java Virtual Machine) |
C.
|
JIT(Just In Time)
|
D.
|
type saved
|
|
Answer: Option A
Explanation:
A API document is created when we use java documentation comments to creates a .php file. |
|
8. |
A _____________ is a file,which contains the code of functions that will be needed in a program.
|
A. |
import file |
B.
|
header file |
C.
|
footer file
|
D.
|
class file
|
|
Answer: Option B
Explanation:
Header file contains the code of functions that will be needed in a program. |
|
9. |
Is it mandatory that every java program should have atleast one class in it?
|
A. |
yes |
B.
|
no |
C.
|
Cant say
|
D.
|
none
|
|
Answer: Option A
Explanation:
Java is purely an Object Oriented Programming language.so,we cannot write a java program without having atleast one class or object. |
|
10. |
________________ statement makes the JVM go to the java standard library.
|
A. |
import |
B.
|
extend |
C.
|
implements new
|
D.
|
import
|
|
Answer: Option A
Explanation:
import statement makes the JVM go to standard library. |
|
11. |
How many variables and methods can be created inside the class?
|
A. |
1 |
B.
|
2 |
C.
|
3
|
D.
|
infinite
|
|
Answer: Option D
Explanation:
Inside a class we can delcare any number of variables and methods |
|
12. |
JVM will not execute _______________ method is not written in a java program.
|
A. |
main() |
B.
|
sample() |
C.
|
function()
|
D.
|
static
|
|
Answer: Option A
Explanation:
Without main() JVM will not execute the java program. |
|
« prev
next »