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 abstract class in Java?
What is meant by flickering?
Does a function need a return?
Can we declare a static variable inside a method?
What is the difference between @before and @beforeclass annotation?
How many bytes is a string java?
What modifiers are allowed for methods in an interface?
Can we execute a program without main?
Can a method inside a interface be declared as final?
What are the two parts of a conditional statement?
How do you use parseint in java?
What does business logic mean?
What does it mean to be immutable?
What do you mean by platform independence?
Write the algorithm to check the number non-leaf nodes in a tree.