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

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

Moderator: admin

Post Reply
Marco
Posts: 3
Joined: Thu Apr 12, 2012 9:16 am
Contact:

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

Post by Marco »

Is "=" considered as an operator? If yes it can take a String object on the right hand side. I marked it in this question and got the question wrong because of that.

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

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

Post by admin »

= is indeed an operator and so is +=. I see that option 3 is += and is marked as a correct option.

So I am not sure I understand your question. Do you mean you selected this option but were still evaluated as wrong?

HTH,
Paul.

Marco
Posts: 3
Joined: Thu Apr 12, 2012 9:16 am
Contact:

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

Post by Marco »

The question was:
Which of the following operators can be used in conjunction with a String object?
And you had to select 3 options.

I chose: +, += and = as answers

The latter was marked wrong stating that '.' (dot) operator is the correct option instead.

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

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

Post by admin »

But I don't see = as one of the options!
2.1285.gif
2.1285.gif (15.25 KiB) Viewed 9757 times

Marco
Posts: 3
Joined: Thu Apr 12, 2012 9:16 am
Contact:

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

Post by Marco »

Oops, it looked like equals on my display. Sorry for the mistake.

shining_dragon
Posts: 14
Joined: Sat Mar 01, 2014 9:12 am
Contact:

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

Post by shining_dragon »

in the explanation, what does CASE_INSENSITIVE_ORDER mean? And also is it included in the exam?

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

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

Post by admin »

It is a member of String class. http://docs.oracle.com/javase/6/docs/ap ... TIVE_ORDER

String class is very much a part of the exam objectives so you should at least know about it.

flex567
Posts: 202
Joined: Mon Apr 02, 2018 8:40 am
Contact:

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

Post by flex567 »

What is this CASE_INSENSITIVE_ORDER for, how can it be used? Can you provide an example?

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

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

Post by admin »


Deleted User 6318

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

Post by Deleted User 6318 »

dot (.) operator accesses members of the String object.
And also methods, right?

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

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

Post by admin »

members = methods + fields.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 17 guests