can we write a program with out a class in core java?
Answer Posted / subrat
ya we can do it by using enum,but it is also a predefined class.
public subrat
{
subrat;
public static void main(String k[])
{
System.out.println("SUBRAT");
}
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is autoboxing in java?
How does list work in java?
Can we write a class without main method in java?
Can we pass a primitive type by reference in java? How
List the features of java programming language.
When do I need to use reflection feature in java?
what is anonymous class in java?
Describe what a thread-local variable is in java?
What do you mean by stream pipelining in java 8?
What do you mean by singleton class in java?
Is nan false?
What are different types of constants?
how can i use a nonsynchronized hashtable?
Does substring start with 0?
How can we find the actual size of an object on the heap?