aspose file tools*
The moose likes Associate Certification (OCAJP 7/8) and the fly likes Question about Q2-1 in Gupta OCA Java 7 book - Chapter 2 - Working with Java data types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Associate Certification (OCAJP 7/8)
Bookmark "Question about Q2-1 in Gupta OCA Java 7 book - Chapter 2 - Working with Java data types" Watch "Question about Q2-1 in Gupta OCA Java 7 book - Chapter 2 - Working with Java data types" New topic
Author

Question about Q2-1 in Gupta OCA Java 7 book - Chapter 2 - Working with Java data types

Ted North
Ranch Hand

Joined: Jan 02, 2012
Posts: 193
    
    1

Hey all,

I hope everyone is doing well. I recommend watching lots of MST3K for lots of uncontrollable lols.

Anyways apparently this is an incorrect statement:
Once assigned, the value of a primitive can't be modified.

This is also an incorrect statement:
A value can't be assigned to a primitive variable


The first one seems like it should be correct because primitive variables can be incremented and decremented with ++ and -- operators etc.
The second one seems like it should be correct because a primitive variable like int x is designed to hold different values like 1 or 1000 or 100_000 or any thing in its range.

What am I missing?

Really Confused,

Ted
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5599
    
  15

The questions asks to select all incorrect statements. So the answers b, c & d are the incorrect statements and should be selected to answer this question correctly.


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Ted North
Ranch Hand

Joined: Jan 02, 2012
Posts: 193
    
    1

Roel De Nijs wrote:The questions asks to select all incorrect statements. So the answers b, c & d are the incorrect statements and should be selected to answer this question correctly.


Wow, I just checked the book and I think your statement is correct. For some reason I had problems understanding the basic instructions. I seemed to select one blatant wrong answer and left the other blatant wrong answers alone as if the objective of the question changed half way through me answering it to selecting only correct statements.

I was tired when I wrote this post last night and took the practice exam. Hopefully, I will think with more brain cells when I take the OCAJ7. Thank-you Roel De Nijs for helping me understand where I went wrong.

Losing my brains,

Ted
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5599
    
  15

Reading the question correctly is sometimes already 50% of answering it correctly

On the exam you'll have a little bit of help, because each question mentions the number of correct answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about Q2-1 in Gupta OCA Java 7 book - Chapter 2 - Working with Java data types