What is the difference between abstract class and interface?
Answer Posted / venu
A programer uses an abstract class when there are some
common features of the program shared by all the objects.
A programer uses an interface when all the features of the
program are implements differently for different objects.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the difference between public, private, protected, and friend access?
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
What is a nested class?
What is string data type?
What is function and method in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
Does constructor creates the object ?
Is a class an object?
Can an arraylist be empty?
Explain Basics of OOP Language in java
Why hashmap is used in java?
What are the basic control structures?
Explain the difference between call by refrence and call by value?
What is files manifesting?
Explain all java features with real time examples