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 / aburar yaseen
we have to have the file name of the class having main
function. if all the three classes are having the main
method we can have any one of the class name as file name.
Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
Explain static nested classes ?
What is use of a abstract variable?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
How to do a true java ping from windows?
What is use of inner class in java?
How objects of a class are created if no constructor is defined in the class?
Define an abstract class with reference to java.
Can a class be protected in java?
Which programming language is most secure?
What is the difference between public, private, protected, and friend access?
Explain the use of sublass in a java program?
Difference between Preemptive scheduling vs. Time slicing?
who can i handle multiple client in RMI
What is a predicate method?
What is singleton math?