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 does string mean in java?
Is it necessary for the port addresses to be unique? Explain with reason.
List the different types of classloaders in java.
What is a singleton class? Give a practical example of its usage.
What is tcp and udp?
What are the two environment variables that must be set in order to run any java programs?
How to create packages in java?
What is the buffer limit?
What is sortedset in java?
Using callable statement how can you pass out parameters, explain with example?
Explain what is Marker interface?
Give some features of interface?
What is mean by encoding?
Is there a sort function in java?
What data structures are used to perform recursion?