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 is string buffer better than string ?
Can you inherit from an abstract class java?
Is array a class?
How does arraylist size increase in java?
Write a java program to generate fibonacci series ?
How do you allocate memory to object?
How to find the given number is a prime number or not by getting input from the user
Differences between traditional programming language and object oriented programming language?
What is classname class in java?
What is the static block?
What do you mean by global variable?
What is a stringbuffer?
What is the purpose of static keyword in java?
What is java and their uses?
What is the default value of an object reference declared as an instance variable?