<span class="greencolor2">Enrol for Java Certification</span>
Certifications Boost Confidence. Go through Certifications CENTER
Study and learn Java MCQ questions and answers on basic program structure and syntax. Attend job interviews easily with these MCQs.
Go through Java Basic Theory Notes on Program Structure before studying these questions.
main() is the starting point of execution.
//Some comments
Some comments//
/*Some comments*/
*/Some comments/*
/*comments are going cars are moving*/
*/comments are going cars are moving/*
//comments are going cars are moving//
String args[] in main method are used for? public static void main(String args[]) { // }
C:/>java Hello AFRICA GOLDMINE Hello - Class name AFICA - First argument GOLDMINE - Second argument
You have to explicitly mention a return type.
Up to JDK 8, only a single underscore symbol can be used as an identifier of a class, method or a variable. JDK 9 does not allow.
/* comments */
/** comments */
/* comments **/
/** comments **/
Documentation comment allows writing notes about the program. javadoc commmand on the source java file generates a HTML Java documentation with the embedded comments.
Open Certification Helper Popup Reset Popup