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
What is the final access modifier in java?
What do you mean by garbage collection used in java?
Differentiate between run time error and syntax error.
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
How can constructor chaining be done by using the super keyword?
What is an array length?
How do you allocate memory to object?
What is the use of conditional statement?
What do you mean by local variable and instance variable?
What are recursive functions?
How do you sort in java?
What is used of static keyword in java?
Is boolean a data type in java?
Outline the major features of java.
What is the default size of arraylist in java?