Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is different betweet class and interface in java?

Answer Posted / gyana

In java by using class we cannot use concept of multiple
inheritance.but by using interface we can apply multiple
inheritance.

Class is a userdefined type declaration.Interface is a set
of rules that all d classes and interface who use it should
be obey the rule.

Normal class:-


class abc
{
public void a()
{}
}

interface declaration

Interface Iabc
{
public void ok()
{

}
}

class using interface

class abc:Iabc
{
public void ok()
{
string a="ABC";
return a;
}
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe

1924


what is the basic and unique feature of dotnet

2179


what is the difference between read the data from table and infotype

2481


How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

4227


Explain the types of operations? Draw the figure for shift and rotate operations?

3276


How to call dll API sub routine in VB Form.

2315


Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?

1934


1.Mutating table

1805


what is the last ant version you worked?how to get it

1897


write a sql qwery which include joining of two tables 4 marks mainframe

1893


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

2136


EXPLAIN UNARY OPEARATORS

2191


design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop.

17616


8.In DSP,Define Signal and System?and various type of signals.

1980


how do i add a column dynamically in a table by using java application?

1969