can we write a program with out a class in core java?
Answer Posted / venkat kanneganti
yes,an empty source file is compiled with out error,but it
will throw Runtime Exception when jvm will not find Main()
method.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
Can main() method in java can return any data?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is the maximum size of arraylist in java?
What is javac in java?
what is meant by Byte code concept in Java?
what is aggregation in java?
Is it safe to install java on my computer?
What is the final access modifier in java?
How can we access some class in another class in java?
What are the types of web technologies?
How to run a JAR file through command prompt?
Can list be null in java?
How many types of design patterns are there?
What is the difference between inheritance and encapsulation?
What is an infinite loop? How infinite loop is declared?