Answer Posted / ashok reddy
2 ans for this question.
1.in a class class name and the constructor is must. so we cant write a file without class.(for this reason only the compiler adds a default constructor)
2.dont write anything inside a text doc(Empty text doc) and save this file as somename.java. it is possible to compile this file but it doesnot produce any .class file.
| Is This Answer Correct ? | 14 Yes | 6 No |
Post New Answer View All Answers
What is r * in math?
What does || mean in code?
Is set thread safe java?
Can a function return a function?
Explain different types of thread priorities ?
What is the right data type to represent a price in java?
Which is fastest collection in java?
Explain importance of throws keyword in java?
What is the default value of byte datatype in java?
How many threads can I run java?
What is meant by tab pans?
Is there any limitation of using inheritance?
What is difference between module and function?
What is bitwise complement?
What is definition and declaration?