How can we run a java program without making any object?
Answer / Prabhat Kumar Tiwari
Although it is rare, it's possible to run a Java program without creating any objects. One way to achieve this is by having a static-only main class that only contains static methods (without any instance variables). However, note that the JVM will still create a few system objects such as Thread and System.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is c better than java?
What happens when the main() isn't declared as static?
Can we execute a program without main() method?
Explain what is encapsulation?
What is balanced tree in java?
What are different types of constants?
how u do unit testing?
What is the difference between hashmap and hashtable in java?
Is java util regex pattern thread safe?
What is charat java?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
what is the difference between String s="hello"; and String s=new String("hello");?