Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Print

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Team

i am beginner in java,and  i am following the This book Jeanne Boyarsky, Scott Selikoff-OCA_ Oracle Certified Associate Java SE 8 Programmer I Study Guide_ Exam 1Z0-808-Sybex (2014) for exam

I  am facing the issue in page 191\



on line 7 It will print in Boolean value:true ,instead of stringvalue;


This is the following summary given in the book,can you please help me to make this statement easier to read

This is a tricky one because there is a lot to keep track of. When you see such questions on
the exam, write down the values of each variable. Lines 3 and 4 are straightforward assignments.
Line 5 calls a method. Line 10 increments the method parameter to 2 but leaves the
numbers variable in the main() method as 1. While line 11 returns the value, the caller ignores
it. The method call on line 6 doesn’t ignore the result so letters becomes "abcd". Remember
that this is happening because of the returned value and not the method parameter.
 
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking why it prints a string value instead of boolean? If that is your question the books explains it well; Line 7 prints out a number concanated with a string
 
Harshal Sood
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am preparing for oca se8 exam. From .. This book OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1z0 808 by  Jeanne I boyarsky . It had been more than  2.5 months. I

I completed my syllabus a week ago.. Now I just follow the same chapter again.. And doing the review questions.. From book.. But as i Completed my chapter I made 40% of the question wrong from review question....

I am not able to understand... Where I am lacking


Do my basic are week..

Is it nor. Normal.... If i did not able to crack the questions... Do iam not able to crack exam as well... All the Certified please help we with this...

 
Ranch Hand
Posts: 99
15
Chrome Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Harshal Sood wrote:please help me to make this statement easier to read



Let's look at the code line after line.


Harshal Sood wrote:i am beginner in java



The above book has the purpose to prepare you for the exam. But it also has references to books, a beginner should read before reading the Study Guide. I would advice you to read a Java beginners book first and then read the Study Guide again.
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic