About Question enthuware.ocajp.i.v7.2.1302 :
Moderator: admin
-
- Posts: 4
- Joined: Tue Oct 07, 2014 6:53 am
- Contact:
About Question enthuware.ocajp.i.v7.2.1302 :
This question looks so specific. Do questions like this (requiring to know exact functionality of methods from API Classes) are common in exam OCAJP?
-
- Site Admin
- Posts: 9791
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1302 :
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.
If you like our products and services, please help us by posting your review here.
-
- Posts: 4
- Joined: Tue Oct 07, 2014 6:53 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1302 :
Your questions are sometimes hard, and this is good for practices.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.
-
- Posts: 6
- Joined: Mon Mar 08, 2021 4:13 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1302 :
I dit but it printed just "12345" with no blank spaces. something changed on Java 8?If you do System.out.println(sb); it will indeed print "12345 " (without quotes) but the length will be 10.
-
- Site Admin
- Posts: 9791
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1302 :
Try printing this : System.out.println("\""+sb+"\"");
to know exactly what does sb contain.
to know exactly what does sb contain.
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Mon Mar 08, 2021 4:13 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1302 :
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
I agree Know that is better don't use IDE for studying

Who is online
Users browsing this forum: No registered users and 2 guests