JAVA Syntax-and-statements Online Test

Advertisement

Instructions:

  • Total number of questions: 10.
  • Time allotted: 10 minutes.
  • Each question carries 1 mark.
  • No negative marks.
  • DO NOT refresh the page.
  • All the best :-)

What You Will Learn:

This Java Syntax and Statements Online Test helps you to Boost your Knowledge in Java. In this test, we cover topics in the form of questions like:
  • Standard application entry point signature: public static void main(String[] args).
  • Source file structure and public class naming requirements (.java file name matching).
  • Statement delimiters, code blocks delimited by curly braces, and strict case-sensitivity.
  • Single-line (//), multi-line (/* */), and Javadoc (/** */) documentation comments.
  • Standard console output methods: System.out.print, println, and formatted printf.
  • The default import of the java.lang package in every compilation unit.

Share your Lovable

Advertisement