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 are access specifiers in java ?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Can a final variable be initialized in constructor?
What are the types of java languages?
Can we extend private class in java?
What is the primary benefit of encapsulation?
Is there any limitation of using inheritance?
What is http client in java?
What do you mean by access modifier?
Give some features of interface?
What is the mapping mechanism used by java to identify IDL language?
What is lazy programming?
What are reference variables in java?
What an i/o filter?
What is unicode with example?