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 / santhosh

where the main() is there
that name give to as file name
that is public also

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override private methods?

547


why we use merge option in hybernate pls give a ex snippet

1464


Can we use string in the switch case?

578


Explain different types of wrapper classes in java?

603


What do you mean by an interface in java?

574






What is use of map in java?

517


What are the drawbacks for singleton class?

520


What is floor in java?

562


Why are functions called methods in java?

534


Can we overload the methods by making them static?

507


Can we cast any other type to boolean type with type casting?

540


What is bifunction in java?

680


what is encapsulation in java? Explain

665


Can java list be null?

554


Which variables are stored in heap?

543