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 used of static keyword in java?
What is the difference between object oriented programming language and object based programming language?
Differences between C and Java?
What does opcode mean?
Differentiate between == and equals().
How do you add an element to a set in java?
How to find the given number is a prime number or not by getting input from the user
What does void * mean?
What is <> used for in java?
What is a key in java?
What is private static class in java?
What's the purpose of using break in each case of switch statement?
How do you invoke a method?
Is it safe to install java on my computer?
What are the principle concepts of oops?