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
Why are parameters used in functions?
Is string a datatype?
What are the two types of java programming?
What is the difference between final, finally and finalize() in java?
Can I declare a class as private?
What is a control variable example?
Explain the difference between collection api and stream api in java8?
Why set do not allow duplicates in java?
Difference between collection, collection and collections in java?
What are the pillars of java?
How do you stop a thread in java?
What is enhanced loop in java?
What is the loop in java?
Which collection is best for sorting in java?
what do you mean by marker interface in java?