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
When is the finalize() called? What is the purpose of finalization?
What is singleton pattern?
Why charat is used in java?
Do you know how to reverse string in java?
what is meant by Byte code concept in Java?
What are the two ways of implementing multi-threading in java?
What is map in java?
Can we use switch statement with strings?
What is immutable in java?
Do you need to import math in java?
What is slash r?
Can you access non static variable in static context?
What is the purpose of using the java bean?
What is map and hashmap in java?
Explain access specifiers?