Java Tutorial #6 Quiz

Q1: What characters are used for single line comments?

Q2: What characters are used for multi-line comments?

Q3: A multi-line comment cannot be used to comment out single lines.

Q4: In the method call below, Freetechtorials is considered what?
shoutOut("Freetechtorials");

Q5: In the method below, name is considered what?
public static void shoutOut(String name){}

Q6: Select the method that would run if our main method contained the following method call.
displayAge(21);

Did you find our site helpful? Consider donating to help us provide more quality content.