Explain class A{}
class B{}
class C{}
all the three classes are saved in a single file name, what
the name should i provide to the file ,in what file name
should i run the program? Ple Explain
Answer Posted / cool_duzz
The name of the file should be the same as the class having
public access modifier.. otherwise u can put it the way u
like. 3 .class files will be generated by compiler.
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Is java map thread safe?
How does enum work in java?
What is a numeric literal?
List some oops concepts in java?
When can an object reference be cast to an interface reference in java programming?
What does the “final” keyword mean in front of a variable? A method? A class?
List any five features of java?
In which order the iterator iterates over collection?
What does main method?
What are the kinds of polymorphism?
What a static class can contains?
Explain 5 features introduced in jdk 1.7?
Why are variables important in research?
Is a copy constructor?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?