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

How do you override a method in java?

747


Define how objects are stored in java?

788


What is the difference between equals() and?

831


Difference between vector and arraylist.

782


how does the run() method in runnable work? : Java thread

698


Can we define constructor in inner class?

751


Can a static method be overridden in java?

757


What is this () in java?

761


What is string syntax?

809


What language is pass by reference?

775


Which object oriented concept is achieved by using overloading and overriding?

803


What programs use java?

693


Differentiate between a constructor and a method? Can we mark constructors final?

950


Is null or empty java?

757


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1585