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 85 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!