About Question enthuware.ocajp.i.v8.2.2014 :
Moderator: admin
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
Not sure what is the issue here. Java does have multiple inheritance of type. Oracle tutorial page (linked above) also says the same. The option clearly writes and/or.
The questions in our questions are not exactly the same as in the exam but based on what is asked in the exam. Except the ones in Foundation test, which are more for getting the basics right.
The questions in our questions are not exactly the same as in the exam but based on what is asked in the exam. Except the ones in Foundation test, which are more for getting the basics right.
-
- Posts: 2
- Joined: Mon Mar 25, 2024 4:54 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
As far as I have read the link you provided, it appears to me that this is the line you were referring to:
"he Java programming language supports multiple inheritance of type, which is the ability of a class to implement more than one interface. "
If this is indeed what you are referring to, it does not state: "one or more interface or class".
Therefore, it is my understanding that this possible answer is incorrect.
"he Java programming language supports multiple inheritance of type, which is the ability of a class to implement more than one interface. "
If this is indeed what you are referring to, it does not state: "one or more interface or class".
Therefore, it is my understanding that this possible answer is incorrect.
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
Point 1: Java supports multiple inheritance of type but only by letting a class implement multiple interfaces.
Point 2: Multiple inheritance of type (in general) can be achieved by implementing multiple interfaces or by extending multiple classes. Java allows only 1 of the two possibilities.
But it doesn't matter much because I think you understood the concept. It is a theoretical question only.
Point 2: Multiple inheritance of type (in general) can be achieved by implementing multiple interfaces or by extending multiple classes. Java allows only 1 of the two possibilities.
But it doesn't matter much because I think you understood the concept. It is a theoretical question only.
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
Multiple inheritance of type includes ability to implement multiple interfaces and/or ability to extend from multiple classes???????????????
a class can extend multiple classes??
a class can extend multiple classes??
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
Please read the discussion/replies above.
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
ok thank u i understand better the answear is tricky like and/or ..... i've read and but it's only or
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.2014 :
sorry what?!
Multiple inheritance of state includes ability to inherit instance fields from multiple classes.
Multiple inheritance of type includes ability to implement multiple interfaces and/or ability to extend from multiple classes.
^ this is related to programming in general? so this question in mock exam is not about java??
Multiple inheritance of state includes ability to inherit instance fields from multiple classes.
Multiple inheritance of type includes ability to implement multiple interfaces and/or ability to extend from multiple classes.
^ this is related to programming in general? so this question in mock exam is not about java??
Who is online
Users browsing this forum: No registered users and 10 guests