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

if i am taking in context of this question is interview
question to check our command on java knowledge
then......all the above are wrong except @Mohammad Faisal
Answer...all other answer only for java begienners for
avoiding confusion.

otherwise we can save our program with any name and after
compilation all the classes create its own .class file and
we run our program with that .class file which having the
public static main() method.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a vector & an array list?

925


What is command line argument

961


Can we declare a static variable inside a method?

762


What about static nested classes in java?

854


Can an interface extend a class?

756


How do you check if a number is a perfect square?

762


How do I know if java is installed?

792


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

7751


Is int a class in java?

743


What is super?

802


what is singleton in java?

816


What is the point of java?

800


what is the difference between a threads start() and run() methods? : Java thread

788


explain what is transient variable in java?

889


What is the base class in java from which all classes are derived?

758