can we write a program with out a class in core java?
Answer Posted / saran
it is possible to create java program without userdefined class.
public enum AAA {
AAA;
public static void main(final String[] args) {
System.out.println("H");
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are runtime exceptions?
What are green threads in java?
Explain the difference between extends thread vs implements runnable in java?
What is the purpose of garbage collection in java?
When can we say that threads are not lightweight process in java?
Is binary a low level language?
What is math floor in java?
What do you understand by overloading and overriding in java?
What are singleton services?
What is replaceall in java?
Is treeset sorted in java?
Can bool be null?
Write a factorial program using recursion in java?
What about member inner classes?
What is java and its types?