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
Why parsing is done?
What is Hierarchy of exception?
What do you mean by inner class in java? Explain
What is the purpose of declaring a variable as final?
How does a for loop work java?
What defines function?
What is difference between array and vector?
How many types of classes are there in java?
What is meant by binding in rmi?
How do you sort in ascending order in java?
What is a heavyweight component?
How do you declare a string variable?
Is null a keyword in java?
What is composition in java?
why java uses class level type casting ?