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
Which software is used for java programming?
Why are getters and setters used?
Which package is used for pattern matching with regular expressions?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
What is a byte string?
Can memory leak in java?
What does mean in regex?
What does singleton class mean?
What is a blocking method in Java?
Explain the difference between comparator and comparable in java?
Can we inherit a class with private constructor?
Can we extend immutable class?
What are keywords and reserved words in java?
What is linked hashset and its features?
What is the use of static methods?