Java 3 review
Choose a correct version of Java Documentation Comment?
/** comments */
Choose a multiline comment in Java language below?
/*comments are going cars are moving*/
Choose a Single Line Comment in Java Language below?
//Some comments
A valid identifier in Java language may contain which characters?
A) 0-9 B) A-Z, a-z C) $, _ (Underscore)
What are the valid White Spaces available in Java language?
A) Space B) Enter C) Tab
What is the need to mention "static" before main method?
A) To call main method without creating an object of class B) To make main method as class method common to all instances
A valid Identifier or name in Java language can start with which character?
A) a-z, A-Z B) $, _
All methods and variables in Java language are kept inside a?
Class or Interface
Name of a Class, Variable, Method or an Interface in Java language is called?
Identifier
A function in C language is similar to what in Java language?
Method
String args[ ] in main method are used for? public static void main(String args[ ]) { // }
Passing arguments at run time
Every statement in Java language should end with a?
Semicolon
What is the use of Access modifier "pubic" in Java language?
To call the main method outside of Class or Package by JVM
What is the default return type of a method in Java language?
You have to explicitly mention a return type.
In standalone Java applications, which method is mandatory?
main method