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
What is the difference between a vector & an array list?
What is command line argument
Can we declare a static variable inside a method?
What about static nested classes in java?
Can an interface extend a class?
How do you check if a number is a perfect square?
How do I know if java is installed?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Is int a class in java?
What is super?
what is singleton in java?
What is the point of java?
what is the difference between a threads start() and run() methods? : Java thread
explain what is transient variable in java?
What is the base class in java from which all classes are derived?