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

What is the history of java?

549


What is an empty class? What functionality does it offer in Java?

677


What is ctrl m character?

518


What is substring 1 in java?

591


How will you print number in reverse (descending) order in BST.

582






What do you understand by synchronization?

596


What does .equals do in java?

529


What is assembly condition codes?

558


What is use of super keyword in java?

600


In java, what is the difference between method overloading and method overriding?

584


How do singleton patterns work?

519


Why you should not use singleton?

544


Are arrays dynamic in java?

540


What are the ways in which a thread can enter the waiting state?

515


Compare Mutex and Semaphore in java.

562