• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding SCJP

 
Sneha Kulkarni
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am planning to Take SCJP1.5,so can please help me regarding this?
Which book i have to refer and how i have to prepare for the exam?

Thanks
Sneha
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sneha Kulkarni:
Hi,

I am planning to Take SCJP1.5,so can please help me regarding this?
Which book i have to refer and how i have to prepare for the exam?

Thanks
Sneha


Welcome to Javaranch, there is one and only book that almost everyone would recommend, it is Kathy Sierra and Bert Bate's "Sun Certified Programmer for java 5 study guide". If you have already done some java programming and are aware of little object oriented concepts, this book alone will do. Dont forget to check out FAQ link in the signature below. Good luck.
 
Shankar Selvaraju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to buy "SCJP 1.5 exam guide by Kathy Sierra, Bert Bates". It is a very good book.

Lot of Mock exams are available in net. you can workout for as many as exams as possible.

eg. http://faq.javaranch.com/view?ScjpMockTests

All the Best.
 
Sheelpa Gupta
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sneha,
Like everybody, I will also suggest you to go for K&B book. It is an excellent book, if you have some experience in Java. I recently cleared SCJP. Read the book atleast twice. Solve all the questions that are given in self test. When you are confident enough, go for mock exams availble on net. And always feel free to ask any(relevent) question on Javaranch. You will definitely find answer here in Javaranch.
 
Sneha Kulkarni
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! for suggesting me regarding the study material.

Please anybody explain me the fallowing increment operator example?

class Increment
{
public static void main(String []args)
{
int i=0;
i=i++;
i=i++;
i=i++;
i++;
System.out.println("i= " +i);
}
}
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sneha!
You could have posted this question into another new thread, as this one goes under the subjectline "Regarding SCJP". May be you can explore more of Java Ranch policies here.

http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch

Coming back to your query, it is "pre-increment expression" as the name suggests... it says "use the value of the expression before the increment happens". So the expression

i++

says 'use the value of i before it is incremented'. That way,

i = i++;

gets evaluated to

"i = 0";

Remember this expression "i=0" has not been executed yet. It would remain as it is and get evaluated after the increment has happened.

Now the increment happens, i from 0 becomes 1(somewhere in memory);
and after that the expression is evaluated, i.e.

i=0;

so i becomes 0 again.

Try excuting the following code,



Check out this link as well,
http://radio.javaranch.com/corey/2004/04/20/1082478396000.html

 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sneha Kulkarni ,

Welcome to JavaRanch

Hope you got the answers for your query from fellow ranchers.

Good luck for the preparations and exam
 
Nikhil Kulkarni
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have bought SCJP book by Khalid Moughal. Is it a good book? Or is Kathy's book is better than this book?
[ August 27, 2007: Message edited by: Nikhil Kulkarni ]
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nikhilpanta Kulkarnisaheb:
I have bought SCJP book by Khalid Moughal. Is it a good book? Or is Kathy's book is better than this book?



Hi Nikhil, welcome to javaranch,

Hope the following link helps.

http://www.coderanch.com/t/264699/java-programmer-SCJP/certification/Query-Book
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic