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
Can a class extend 2 classes in java?
What is the parse method in java?
How do you sort a list in java?
Write a program to print fibonacci series
What is boolean data type in java?
Is singleton class thread safe?
What is treeset in java collection?
Explain what are final variable in java?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Explain about exception propagation?
What all access modifiers are allowed for top class ?
What is class and object in java?
Difference between class#getinstance() and new operator ?
What do you mean by jjs in java8?
Can we make main() thread as daemon?