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
Write a program to solve producer consumer problem in java?
What is a variable simple definition?
Can we use different return types for methods when overridden?
What is data member in java?
What's the default access specifier for variables and methods of a class?
What do you mean by platform independence? What is an interface?
Are private methods final?
Which is better ascii or unicode?
What is a blocking method in Java?
Explain different forms of polymorphism?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is a values collection view ?
How do you make a thread in java?
What is constructor chaining and how is it achieved in java?
Explain about data types?