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 / dipil t t

class A{},class B{}and class C{} Shold be public then we
can select main class name is the file name.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we pass a primitive type by reference in java? How

729


What is sizeof () operator?

769


Differentiate between the constructors and methods in java?

752


Why does java not support pointers?

794


Difference between current previous versions of Java?

811


What is meant by singleton class?

824


What is the transient keyword?

1426


When is the garbage collection used in Java?

927


Can a class be private?

739


Explain about the performance aspects of core java?

799


What is jar?

886


What does system.gc() and runtime.gc() methods do?

842


How to use Media tracker Class.

892


What is java abstraction with example?

752


What are methods in java?

778