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 / anandhi

class a
{
}
class b extends a
{
}
class c
{
public static void main(String arg[])
{
b b1=new b();
....
}
}
so file name c...

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of relation?

581


What differences exist between iterator and listiterator?

577


What is Java Shutdown Hook?

623


What package is math in java?

541


What is difference between final and finally in java?

597






What is boolean example?

535


Can we have any code between try and finally blocks?

568


Can we override the static methods?

580


What is a condition in java?

542


What is the difference between super class & sub class?

571


Can we return null in java?

649


What is final keyword in java?

560


What will be the output of round(3.7) and ceil(3.7)?

689


What does localhost mean?

506


What is array and arraylist in java?

538