You can’t call something that doesn’t exist. Since you haven’t created an object, the non-static method doesn’t exist yet. A static method (by definition) always exists.
More Related Contents:
- Static Initialization Blocks
- Why is the Java main method static?
- Static Block in Java [duplicate]
- Why isn’t calling a static method by way of an instance an error for the Java compiler?
- How can I get a resource content from a static context?
- Java: Static vs inner class [duplicate]
- When does static class initialization happen?
- Are Java static initializers thread safe?
- How to instantiate non static inner class within a static method?
- Can I override and overload static methods in Java?
- Why isn’t a qualified static final variable allowed in a static initialization block?
- Should a “static final Logger” be declared in UPPER-CASE?
- Java: Static Class?
- How do I create a static local variable in Java?
- Java Error: Cannot make a static reference to the non-static method
- When NOT to use the static keyword in Java?
- Java static serialization rules?
- Java static final values replaced in code when compiling?
- Is it possible to override a static method in derived class?
- Why we should not use protected static in java
- Closest Ruby representation of a ‘private static final’ and ‘public static final’ class variable in Java?
- How and where to use Static modifier in Java?
- Behavior of static blocks with inheritance
- How to extend a final class in Java
- What is the use of a private static variable in Java?
- Why can’t a top level class be static in Java?
- Lifetime of a static variable in Android
- Static method invocation
- Java : in what order are static final fields initialized?
- What is “static”?