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
How do you create an array in java?
What is meant by anonymous class?
What is java regex?
Difference between string, string builder, and string buffer?
Which are the two subclasses under exception class?
Can a private method be declared as static?
How do you input a string in java?
What is difference between class and object in java?
What is nested top-level class?
Write a method that will remove given character from the string?
What is the purpose of void class?
How do you use spaces in java?
What is string pool in java?
Explain hashset and its features?
What is an infinite loop in java? Explain with an example.