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
What is a finally block?
Are constructors methods?
What is meant by class loader? How many types are there? When will we use them?
What are the advantages of arraylist over arrays?
What happens if an exception is throws from an object's constructor?
What is ternary operator in java?
What is <> used for in java?
Why do we need data structure in java?
What is locale in java?
According to java operator precedence, which operator is considered to be with highest precedence?
What is collection sort in java?
What is super?
Does a class inherit the constructors of its superclass in java programming?
What is better- service oriented or batch oriented solutions?
What is the difference between processes and threads?