Answer Posted / mahipal
no,because java is purely object oriented language,so we can't create the objects with out writing a class.And also we can save the code as classname.java that's the reason also we must create a class
Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Can we define private and protected modifiers for the members in interfaces?
How many types of memory areas are allocated by jvm?
What is public static?
What is the difference between a method and a procedure?
When is update method called?
Difference between string, string builder, and string buffer?
When will we use them?
What is java util hashmap?
Explain java coding standards for variables ?
What is foreach loop in java?
What will happen if a thrown exception is not handled?
What is the point of java?
What is java used for on a computer?
Can a main method be declared final?
What is the purpose of using java.lang.class class?