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

Difference between this() and super() in java ?

816


What is the function of java?

744


What is a text string?

856


What is initial size of arraylist in java?

785


What are the high-level thread states in java programming?

841


Is void a type?

764


Explain the usage of this with constructors?

752


Is empty .java file name a valid source file name?

814


What do you mean by light weight and heavy weight components?

755


how to write a server program and sending the mails to the server using smtp protocol please help me

1785


Are variables stored in ram?

771


What is the role of garbage collector in java?

723


Can a constructor be private and how are this() and super() method used with constructor?

745


What is null data type?

721


Why main method is static in java?

843