Programming - First Step towards Java Programming
You Are Here :: Home > JAVA > First Step towards Java Programming - General Questions
13. |
Is main() is the starting point for JVM to start execution of the java program?
|
A. |
Yes |
B.
|
no |
C.
|
Cant say
|
D.
|
none
|
|
Answer: Option A
Explanation:
Yes,main() method is the starting point of JVM. |
|
14. |
A method generally performs __________________
|
A. |
it can accept some data from outside |
B.
|
it can return some result |
C.
|
both a and b
|
D.
|
none of these
|
|
Answer: Option C
Explanation:
A method generally performs accept some data and returns some result. |
|
15. |
_________________ is used to accepts a group of strings.
|
A. |
arrays |
B.
|
strings |
C.
|
string type array
|
D.
|
structure
|
|
Answer: Option C
Explanation:
String type array is used to accepts a group of strings. |
|
16. |
args[ ] is the array name and it is of ______________ type.
|
A. |
string |
B.
|
int |
C.
|
boolean
|
D.
|
float
|
|
Answer: Option A
Explanation:
args[] is the array of string type. |
|
17. |
The values passed to main() method are called _______________
|
A. |
comments |
B.
|
variables |
C.
|
constants
|
D.
|
arguments
|
|
Answer: Option D
Explanation:
Arguments which pass the values to the main(). |
|
18. |
_______________________ methods are the methods,which can be called and executed without creating the objects.
|
A. |
non static |
B.
|
static |
C.
|
both
|
D.
|
arguments
|
|
Answer: Option B
Explanation:
Static methods can be called and executed without creating objects. |
|
« prev
next »