Explain about Superclass and Subclass?

Answer Posted / jagadeesh

sub class is the child of super class and super class is
the parent of sub class

sub class auto matically having all the properties of sub
class and super class itsef, but super class having all the
properties of super class only not the sub class properties.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are untrusted applets?

588


What is super in java?

575


What is super constructor?

551


Why local variables are stored in stack?

500


Can we increase size of array?

571






Is it possible to use string in the switch case?

555


Can we declare a class as abstract without having any abstract method?

557


What is a java predicate?

537


Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1352


Do you need to import math in java?

564


What is the maximum size of list in java?

546


What is array list in java?

593


What is data structure in java?

539


Explain treeset?

593


Can you access non static variable in static context?

559