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 is constructor in java ?
When should we create our own custom exception classes?
Explain about static nested classes in java?
If you do not want your class to be inherited by any other class. What would you do?
write a program that list all permutations of ABCDEF in which A appears before B?
What are scalar data types?
What is the function of http?
How can we break singleton in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is scope & storage allocation of global and extern variables? Explain with an example
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What is the use of isempty in java?
Can you pass functions in java?
Give some features of interface?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?