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
What is join () in java?
Explain java thread life cycle.
Which is faster set or list in java?
What are autoboxing and unboxing? When does it occur?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
When does an object becomes eligible for garbage collection in java?
Write a java program to check if a number is prime or not?
What is the meaning of nullable?
What is the maximum size of array in java?
Tell me a few examples of final classes defined in Java API?
What are advantages and disadvantages of OOPs?
What is the default value of local and global variables?
What are the advantages of inner classes?
What is meant by attribute?
What is a lightweight component?