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 defines function?
Can we use return in constructor?
What is empty string literal in java?
What is the vector class in java programming?
What is the difference between this() and super() in java?
Is class is a data type?
Explain the difference between an Interface and an Abstract class?
Is static a keyword in java?
How do you end a program?
Why main method is static in java?
How do you sort in descending order in java using collections sort?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
How does sublist works in java?
Is there any difference between nested classes and inner classes?
who can i handle multiple client in RMI