Languages-Java [3i Infotech Placement]: Sample Questions 23 - 24 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 23

Edit

Write in Short

Short Answer▾

Where are the card layouts used?

Explanation

  • Cardlayout class manages two or more components that share the same display space.
  • Provides a way for user to choose between the components.
  • CardLayout class manages the components in such a manner that only one component is visible at a time. It treats every component in the container as card. One card is visible at a time, and the container acts as stack of cards.

Question 24

Edit

Write in Short

Short Answer▾

What is the difference between superclass & subclass?

Explanation

Difference between Subclass & Superclass
SubclassSuperclass
A class that is derived from another class is called a subclass.The class from which the subclass is derived is called a superclass.
A subclass inherits state and behaviour from all of its ancestors.The term superclass refers to a class՚s direct ancestor as well as all of its ascendant classes.
Known as derived class, child class.Known as base class, parent class.
Use the properties and method of the super class.Cannot use the properties and methods of the subclass.
There is one superclassThere is one subclass

Developed by: