can we write a program with out a class in core java?
Answers were Sorted based on User's Feedback
Answer / venkat kanneganti
yes,an empty source file is compiled with out error,but it
will throw Runtime Exception when jvm will not find Main()
method.
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / navneet raushan
Yes, with the help of static block we can write a program.
static block executed first always
| Is This Answer Correct ? | 12 Yes | 5 No |
Answer / saran
it is possible to create java program without userdefined class.
public enum AAA {
AAA;
public static void main(final String[] args) {
System.out.println("H");
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / juned
yes,It is possible by using enum(which is a predefine class)
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
0 Answers HCL, SAP Labs, Vital Soft,
What is import java util arraylist?
How to perform merge sort in java?
What are the steps that are followed when two computers connect through tcp?
What is clipping?
Why is logger singleton?
What is an interface in java? Explain
What is meant by wrapper classes?
Describe how to implement singleton design pattern in struts.
what is template design pattern?
Is main an identifier?
solve (x-1)(x-9)=8;
3 Answers IBM, Manhattan, TCS,