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
Explain jvm, jre, and jdk?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
How do you achieve polymorphism in java?
What are access specifiers in java ?
What is immutable class in java?
Explain numeric promotion?
Is string a data type in java?
What are the benefits of operations?
What are 5 boolean operators?
What is the use of isempty in java?
What is the difference between replace and replace all?
Discuss about garbage collector in Java.
Compare overloading and overriding?
What is an object's lock and which object's have locks in java programming?
What is += mean in java?