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

Why there are some null interface in java? What does it mean?

891


Why we used break and continue statement in java?

836


what is abstract class in Java?

916


Why runnable interface is used in java?

856


Write a program to find the greatest of three numbers in java?

794


Does windows 10 need java?

814


What do you understand by garbage collection in Java? Can it be forced to run?

777


What is off heap memory?

765


Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

837


Can a class extend more than one class?

871


What is the abstraction?

807


Why is static used?

791


How can we avoid including a header more than once?

815


How does finally block differ from finalize() method?

828


what is the significance of listiterator in java?

837