diff between abstract methods and interfaces with programing
(code) example?

Answer Posted / naresh p

an abstract class contains the concrete methods as well
abstract methods. It may instance variables and static
final variables
an interface contains only abstract methods. all the
variables are by default static and final.
an abstract class contains constructor where as an
interface does not have constructors...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what methods would you overwrite in java.lang.object class?

560


Is java se free?

520


What is the difference between the paint() and repaint() methods in java programming?

621


Write a program to print fibonacci series

611


What java ide should I use?

565






Is java a digit method?

512


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

608


What is comparator in java?

551


Which package has light weight components in java programming?

673


How to sort an unsorted array in java?

608


What is bigger kb or mb?

583


Define linked list and its features with signature?

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". } } }

1347


Can we have 2 main methods in java class?

537


Explain the difference between hashmap and hashtable in java?

487