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 final access modifier in java?

622


What do you mean by garbage collection used in java?

584


Differentiate between run time error and syntax error.

577


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

602


How can constructor chaining be done by using the super keyword?

626






What is an array length?

510


How do you allocate memory to object?

536


What is the use of conditional statement?

572


What do you mean by local variable and instance variable?

526


What are recursive functions?

585


How do you sort in java?

614


What is used of static keyword in java?

597


Is boolean a data type in java?

531


Outline the major features of java.

577


What is the default size of arraylist in java?

518