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 the is a and has a relation ship in oops concept in
java?

Answer Posted / yogeshwar

is a
Relationship between a Class and its object.
Eg.
Class Car { ... }

Car maruti800=new Car();

here maruti800 is a car.
Relationship between Car and maruti800 ==> is a

the Person and Address is a suitable example for has a

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is join () in java?

964


Explain java thread life cycle.

1025


Which is faster set or list in java?

1029


What are autoboxing and unboxing? When does it occur?

947


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1081


When does an object becomes eligible for garbage collection in java?

1060


Write a java program to check if a number is prime or not?

1036


What is the meaning of nullable?

1008


What is the maximum size of array in java?

981


Tell me a few examples of final classes defined in Java API?

1090


What are advantages and disadvantages of OOPs?

1135


What is the default value of local and global variables?

1093


What are the advantages of inner classes?

1020


What is meant by attribute?

1110


What is a lightweight component?

1019