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

Explain about anonymous inner classes in java?

570


Which is a valid identifier?

533


How will you initialize an Applet?

612


How would you format a date in java? I.e. In the ddmmyyy format?

759


What is a loop java?

577






What is the use of parseint in java?

525


What is an immutable object? How do you create one in java?

587


What is the use of System class?

598


What is the difference between a method and a procedure?

536


How hashmap increases its size in java?

476


What does java stand for?

536


What is the exception hierarchy in java?

476


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1365


What do you mean by platform independence? What is an interface?

557


what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent

1721