This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

OCA/OCP Practice Tests book

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I am preparing for 1Z0-808 Exam and I am a bit confused about vagueness of the questions on the real exam. I think I know material pretty well, but I still get some answers wrong.
I will give an example:
In chapter 7 there is a question:

Which of the following statements about inheritance is correct?
A. Java does not support multiple inheritance.
B. Java allows multiple inheritance using abstract classes.
C. Java allows multiple inheritance using non-abstract classes.
D. Java allows multiple inheritance using interfaces.


I got this wrong even though I know about type, implementation and state inheritance. This question is vague, I know class can implement multiple interfaces and java support multiple inheritance of types, or even implementations with default methods, but I also know that in every book I read it states clearly that Java doesn't support multiple inheritance. To make it worse, in answer to some other question we have

Java does not allow multiple inheritance

(chapter 7, answer to question 37.)
What is the trick here, is it "support" and "allows" words?

I am very confused if I should expect something like this on real exam and what is percentage of these theoretical questions?

Any clarification is appreciated, thank you
 
Ranch Hand
Posts: 271
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ivana Kilibarda wrote:What is the trick here, is it "support" and "allows" words?

I am very confused if I should expect something like this on real exam and what is percentage of these theoretical questions?

Any clarification is appreciated, thank you

Welcome to the Ranch!  

You don't sound confused at all.  I will not attempt to answer your question directly since I'm pretty sure someone else will.  But, I do want to remind you that the real exam tells you how many answers are correct for each question.  That within itself, may help for some questions.  To your point, there will likely be other "theoretical questions" where you give it your best shot and just have to move on to the next question before time runs out.
 
author & internet detective
Posts: 39396
763
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivana,
Welcome to CodeRanch!

The intent of Option A is to be "Java doesn't allow multiple inheritance in any forum". It's there to make the answers mutually exclusive. Java does allow implementing multiple interfaces making Option D the answer.

On the real exam, there are some questions like this, but there are way more coding questions.
 
Ivana Kilibarda
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both for your answers
So, Jeanne, if I have similar question, I should go with more "specific" answer (as somewhat general rule for answering)?
 
Jeanne Boyarsky
author & internet detective
Posts: 39396
763
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ivana Kilibarda wrote:Thank you both for your answers
So, Jeanne, if I have similar question, I should go with more "specific" answer (as somewhat general rule for answering)?


Correct.

There aren't a ton, but there some "English ambiguous" questions on the exam. Often you can use the number of correct answers as a clue to intent. This one was not one of those cases alas .
 
Ivana Kilibarda
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, not a ton, but there are some and I have to guess which one to select. Number of answers helps, I agree
Okay, thank you both very much for your time
 
Ranch Hand
Posts: 58
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ivana Kilibarda wrote:Hi guys,
I am preparing for 1Z0-808 Exam and I am a bit confused about vagueness of the questions on the real exam. I think I know material pretty well, but I still get some answers wrong.
I will give an example:
In chapter 7 there is a question:

Which of the following statements about inheritance is correct?
A. Java does not support multiple inheritance.
B. Java allows multiple inheritance using abstract classes.
C. Java allows multiple inheritance using non-abstract classes.
D. Java allows multiple inheritance using interfaces.

Ivana look care fully and read the question twice
It asking which is true about the inheritance that not it not asking correct answer to you, instead it is asking romours of inheritance that is option A is correct,
Because we know that java doesn't support multiple inheritance that's true so answer is option A

 
Ivana Kilibarda
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your replay sohail hussain
Actually, correct answer is D,which is true of course, I just didn't know if exam wants more general or more specific answer. I will go with more specific with this type of questions. The number of these type of questions can't be so high that it will get me fail just because of ambiguity.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!