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 do you mean by constant time complexity?
Explain jvm, jre, and jdk?
Is char a data type in java?
How do you calculate square roots?
What is boolean flag in java?
What are different types of multitasking?
What is the difference between Java and C++?
What is the collections api in java programming?
What does void * mean?
What do you mean by an interface in java?
What is the final class modifier?
What is an enumeration?
What is the default value of local and global variables?
What is a singleton class? Give a practical example of its usage.
What do you mean by local class?