What would be the result of the following code being executed?
class Main {
public static void main(String[] args) {
}
System.out.println("Learning Java is fun");
a.) We would get an error due to the missing single quotes around the Learning Java
is Fun.
b.) We would get an error as we did not have a comment before the printin line.
c.) The program would output Learning Java is fun to the screen.
d.) We would get an error as there should be no double quotes.



Answer :

Other Questions