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
Can a class extend 2 classes in java?
What is arraylist e?
What is array size in java?
Can we call a non-static method from inside a static method?
What is the parse method in java?
Is class is a data type?
What is the basic concepts of OOPS?
What is a variable declaration?
Explain about data types?
What does percent mean in java?
What is difference between array and vector?
Explain about map interface in java?
What is the properties class?
What are some characteristics of interference class?
If a class is declared without any access modifiers, where can the class be accessed?