About Question enthuware.ocajp.i.v7.2.1374 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
timbijnen
Posts: 4
Joined: Fri Oct 03, 2014 5:21 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1374 :

Post by timbijnen »

i answered this wrong because of the added (propably accidental) zero in the correct answer (see below)

Code: Select all

int b = 0b01001110_00100000;
as i read it, the value declared is 1001110_00100000, which is the same as the bit pattern declared in the question, what remains is the first three characters, namely 0b0, which - as i understand from the right answer - should be 0b. So the correct answer should be

Code: Select all

int b = 0b1001110_00100000
or does the additional 0 after 0b has any meaning?

*propably would have answered right if it said int b = 0b1001110_00100000 in the answer pool

admin
Site Admin
Posts: 10055
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1374 :

Post by admin »

No, it has no meaning. It is same as if you write 20000.00 or 020000.00.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

timbijnen
Posts: 4
Joined: Fri Oct 03, 2014 5:21 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1374 :

Post by timbijnen »

So both would be correct?

Code: Select all

int b = 0b01001110_00100000
as well as

Code: Select all

int b = 0b1001110_00100000
*edit: answered my own question by trying it out. Conclusion: Both would be correct

Username987654
Posts: 95
Joined: Sat Dec 26, 2015 6:37 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1374 :

Post by Username987654 »

Enthuware OCA 8 book page 67
You can use multiple underscores consecutively. You need not worry about the rules governing the usage of underscores in hexadecimal, binary, and octal number formats. Note that this is important only for the Java 6 to Java 8 Upgrade Exam (1Z0-813). The regular exam doesn’t have questions on this feature.

Understanding of these formats is not required for the exam and so, I will not discuss these formats any further.
What is the lastest advice on whether this information is required for OCA 8 exam (since it clearly appears in Enthuware OCA 8 Mocks) ?

admin
Site Admin
Posts: 10055
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1374 :

Post by admin »

It is still good to know but not required. But you need to remember that there is no guarantee because only Oracle knows all the questions. Our advice is based on the feedback that we gather from users and our trainees.
If you like our products and services, please help us by posting your review here.


Post Reply

Who is online

Users browsing this forum: No registered users and 48 guests