Java Tutorial #5 Quiz

Q1: Where in your program do you create methods?

Q2: What is the benefit of using methods?

Q3: The main method is run when our program starts but methods that we create have to be called on to run.

Q4: If we created a method named shoutOut what code would we write to call it?

Q5: What is the code to add a new line when printing text?

Q6: In Java, the backslash is called what?

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