what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / kala
1) if the class is abstract. this class con't instatiate any
object. if we that class implemented with interface, we can
instatiate object with respect interface methods.
2) if we extend that particular abstract class, we must be
implemented all those abstract methods in that class.
otherwise it will automatically become abstract class. in
interface, if we implements the interface not compalsory
implemented, we can use those class ref.
| Is This Answer Correct ? | 47 Yes | 36 No |
Post New Answer View All Answers
Differentiate between a class and an object.
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Explain about the main() method in java?
What is a nested class?
worst case complexities of Quick sort and Merge sort.
What are the topics in core java?
What about member inner classes?
What is a static method in java?
Is 0 true or false?
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
Explain the reason behind ending a program with a system.exit(0)?
How do you insert a line break?
Can a class be private?
What is ‘is-a ‘ relationship in java?
What are the three parts of a lambda expression? What is the type of lambda expression?