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
How do you calculate square roots?
Why there are some null interface in java? What does it mean?
Why do we override tostring method in java?
How to make a read-only class in java?
What are assembly attributes?
What are predefined functions?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
What is protected in java?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is one third plus one third as a fraction?
When to use runnable interface vs thread class in java?
Is java developer a good career?
what is server side caching?
What is the difference between length and length() method in java?