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

The name of the file should be the same as the class having
public access modifier.. otherwise u can put it the way u
like. 3 .class files will be generated by compiler.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What causes memory leaks in java?

491


How do you trim a space in java?

503


What is the difference between jfc & wfc?

599


What are keyboard events?

612


Can java object be locked down for exclusive use by a given thread?

586






What is main string [] args?

522


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

1464


What is a heavyweight component?

543


How can we create a thread in java?

589


How do you remove all elements from an arraylist in java?

508


Is it possible to use string in the switch case?

555


What does || || mean in math?

515


What is the purpose of checked and unchecked exceptions in JAVA?

569


What is the return type of the main method?

577


Why do we use string?

581