| |
GeekInterview.com > Interview Questions > J2EE
| Print | |
Question: Java single inhertiance and multiple inheritance
Answer: 1.what is meant by inheritance,single inhertiance,multiple inheritance?2.define abstract class & abstract method?3.how to developed and delopying a SERVELT,JSP program in the TOMCAT APACHE SERVER,WEBLOGIC SERVER?PLZ send the answer for the particular abo |
| November 11, 2005 06:09:57 |
#5 |
| kranti |
Member Since: Visitor Total Comments: N/A |
How many ways do we have to load a class? |
| * by using Class.forName() and ClassLoader.loadClass() we can load java.lang.class* By comparison, ClassLoader.loadClass() is an instance method and requires you to select a particular classloader, which may or may not be the loader that loads that calling code.*For example, if you are about to load a class you know has a very costly static initializer, you may choose to go ahead and load it to ensure it is found in the classpath but delay its initialization until the first time you need to make use of a field or method from this particular class. |
| |
Back To Question | |