What is the result of compiling and executing this code segment?
class StaticMethodTest {
static void printMessage() {
System.out.println("Hello, Java!");
}
}
public class Main {
public static void main(String[] args) {
StaticMethodTest.printMessage();
}
}