public class MyClass {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
From the above, if we say that MyClass is the class and public static void main(String[] args) is the method, then I would like to know what part of the code would be considered as the Object.
If we say that classes have objects and objects have methods, then in the code above, which part is the object? Is there any object created here?