The line of Java code “// System.out.println("Hello");” will

The line of Java code “// System.out.println("Hello");” will

a) do nothing
b) cause "Hello" to be output
c) cause a syntax error
d) cause "(Hello)" to be output
e) there is no way to know without executing this line of code


Answer:  a.

Explanation:  The characters “//” denote the beginning of a comment.  The comment is not compiled and so, nothing would happen when this code is executed.


Java

Learn More Multiple Choice Question :