Question from the Java test

Write a Java program that prints 'Yes!'

Expert

What is the output of executing the following code?

public class Main {
	public static void main(String[] args) {
		Main m = null;
	    m.printM();
	}
	public static void printM() {
	    System.out.println("Yes!");
	}
}
Author: FodiéStatus: PublishedQuestion passed 139 times
Edit
-1
Community EvaluationsNo one has reviewed this question yet, be the first!