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
List the three steps for creating an object for a class?
Explain the private protected method modifier?
What is meant by the value of a variable?
Can string be considered as a keyword?
What is percentage in java?
What is java object name?
What do you mean by object?
What is a line break?
Can You Have Virtual Functions In Java?
What are the advantages of java inner classes?
When can we say that threads are not lightweight process in java?
When is the arraystoreexception thrown?
What are the differences between path and classpath variables?
What is the core java?
What are the advantages of unicode?