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

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

Moderator: admin

Post Reply
chipchipchonkeykonky
Posts: 4
Joined: Tue Oct 07, 2014 6:53 am
Contact:

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

Post by chipchipchonkeykonky »

This question looks so specific. Do questions like this (requiring to know exact functionality of methods from API Classes) are common in exam OCAJP?

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

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

Post by admin »

Yes, you will get some questions that require precise knowledge of some key classes and some of their methods. They are all covered in our questions. You don't need to worry about the rest.

chipchipchonkeykonky
Posts: 4
Joined: Tue Oct 07, 2014 6:53 am
Contact:

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

Post by chipchipchonkeykonky »

admin wrote:Yes, you will get some questions that require precise knowledge of some key classes and some of their methods. They are all covered in our questions. You don't need to worry about the rest.
Your questions are sometimes hard, and this is good for practices.

f.motta
Posts: 6
Joined: Mon Mar 08, 2021 4:13 am
Contact:

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

Post by f.motta »

If you do System.out.println(sb); it will indeed print "12345     " (without quotes) but the length will be 10.
I dit but it printed just "12345" with no blank spaces. something changed on Java 8?

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

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

Post by admin »

Try printing this : System.out.println("\""+sb+"\"");
to know exactly what does sb contain.

f.motta
Posts: 6
Joined: Mon Mar 08, 2021 4:13 am
Contact:

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

Post by f.motta »

Thank you Paul, the problem was that I was using an IDE(IntelliJ), and the output is different I don't know why.

I agree Know that is better don't use IDE for studying :D

Post Reply

Who is online

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