Difference between Superclass and Subclass?

Answer Posted / sathya


A subclass inherits all the properties of a Super class.
A Subclass can access all the methods, variables of super
class and not vice versa.
A Subclass extends a Super class.

Is This Answer Correct ?    110 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a ?

970


How an object is serialized in java?

752


What Is Query Throttling in java?

787


What is hash table in java?

684


Should database connections be singleton?

769


What is static keyword?

788


Explain java heap space and garbage collection?

800


What are the two basic ways in which classes that can be run as threads may be defined?

823


What is a variable in java?

745


What is a war file?

762


Can inner class have constructor?

754


Does unicode support all languages?

780


What is the difference between java applets and applications?

853


What is compareto () in java?

725


what is the purpose of using rmisecuritymanager in rmi?

768