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 an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What is dynamic array in java?
Does list maintain insertion order java?
What is data object example?
What is java regex?
What is an eror in java?
Why can we not override static method?
Are global variables initialized to zero?
Define inheritance?
Can we define private and protected modifiers for variables in interfaces?
What is variable length arguments in java?
What do you mean by compiler?
Explain yield() method in thread class ?
What do you mean by constant time complexity?
What is method overloading and method overriding?