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?

Answers were Sorted based on User's Feedback



what is different betweet class and interface in java?..

Answer / 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

what is different betweet class and interface in java?..

Answer / wipro company

do not return value of funtion in interface but return
value of funtion in the class

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

< No Frames > tag is used for

0 Answers  


why we use new keyword for object

4 Answers   TCS,


Why data bus is bidirectional and address bus is unidirectional?

4 Answers   Infosys, Wipro,


I am work in it aompenei

0 Answers   Access Healthcare,


There is a table which contains all the employee details, unfortunately there is mistake occured while entering the data. ex: ------------------------------- empid empname gender address ------------------------------- 1 abcd f address1 2 defg m address2 3 ghth m address3 4 jkil f address4 write a update query that will change gender 'm' to 'f' and 'f' to 'm'

2 Answers  


Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.

0 Answers   Amazon,


Piggy backing is a technique for a) Flow control b) sequence c) Acknowledgement d) retransmition

17 Answers   Fast Booking, HCL, Lucent, NIC,


Which tag is used to break a line

3 Answers  


How to update a data for the views in the relational data base schema

1 Answers   TCS,


What is the difference between in-proc and out-of-proc?

2 Answers   Oracle,


what is web configuration file

0 Answers   HCL,


what is delimiter in sas ?

0 Answers  


Categories