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


Please Help Members By Posting Answers For Below Questions

Explain static nested classes ?

819


What is use of a abstract variable?

749


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1096


How to do a true java ping from windows?

811


What is use of inner class in java?

758


How objects of a class are created if no constructor is defined in the class?

811


Define an abstract class with reference to java.

782


Can a class be protected in java?

731


Which programming language is most secure?

742


What is the difference between public, private, protected, and friend access?

790


Explain the use of sublass in a java program?

776


Difference between Preemptive scheduling vs. Time slicing?

797


who can i handle multiple client in RMI

1662


What is a predicate method?

754


What is singleton math?

800