August 03, 2011

Difference between Interface and Abstract class

There are many difference between Interface and Abstract class
  •  By using interface we can acheive Multiple Inheritance and it cannot be done by using abstract class.
  • In interface, we can declare only static final variables, where as in asbstract class we can also declare non-static and non-final variables.
  • In abstract class we can also declare non-abstract methods and it cann't be done in interface.

1 comment:

Connecting Java program to Database

It is very simple to establish a connection to the Database from a Java program          Class.forName("com.mysql.jdbc.Driver...