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
What is the epoch date?
Why hashcode is used in java?
What do you mean by scope of variable?
Explain the public class modifier?
What are inner classes or non static nested classes in java?
Can we declare main () method as non static?
What is collection class in java?
What is the simpletimezone class in java programming?
What are the main features of java?
What does \ mean in regex?
Which oo concept is achieved by using overloading and overriding?
Why is java multithreaded?
What is api data?
What is boolean law?
What is java and why do we need it? Explain