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 meant by 'bit masking' in java?

649


What is jvm? How its run?

664


What is the difference between stringbuffer and stringbuilder class?

574


Explain about interrupt() method of thread class ?

666


What does sizeof return?

561






'A class is a template for an object' explain this statement.

547


What is user defined exception in Java?

615


What happens if we don’t define serial version uid?

572


what do you mean by stream pipelining in java 8? Explain

536


What is a lambda expression ? What's its use ?

565


what is thread? : Java thread

559


What is the primitive type short?

581


Explain about fail fast iterators in java?

564


What is compareto () in java?

540


What is the impact of declaring a method as final?

564