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
When do we use hashset over treeset?
What is static synchronization?
What is the static variable?
What is the longest unicode character?
Can we declare a class as abstract without having any abstract method?
How many bits is a char?
Can we use static class instead of singleton?
How can constructor chaining be done using this keyword?
What are the topics in advance java?
How you can force the garbage collection?
What is the static keyword?
Difference between operator overloading and function overloading
Explain the difference between comparator and comparable in java?
How list contains works in java?
What is an example of declaration?