This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Java Code Conventions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Java Code Conventions" Watch "Java Code Conventions" New topic

Java Code Conventions

Adithi Palli

Joined: Aug 06, 2007
Posts: 7
Hi All,

Is it required to go through the complete "Java Code conventions" document in website for the SCJP 5 Exam?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

i don't recall that code conventions should be taken into account for SCJP. I think it is related to SCJD.

[My Blog]
All roads lead to JavaRanch
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1599
If I am not wrong the root of this question lies in the objective 1.4

Develop code that declares both static and non-static methods, and�if appropriate� use method names that adhere to the JavaBeans naming standards. Also develop code that declares and uses a variable-length argument list.

I think the intention is to expect that good programmers not only write code that is very tricky and complex but also little descent.

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
SCJP exam has got nothing to do with Java code conventions.
In fact the exam questions will not stick to code conventions [spaces] because to of universal testing tool should work on all kinds of OS's and resolution.

Adithi Palli

Joined: Aug 06, 2007
Posts: 7
Thank You Christophe , Akhilesh and Deepak for your valuabe response.

Raef Kandeel
Ranch Hand

Joined: Aug 05, 2007
Posts: 87

There are few things that you need to know about the JavaBeans naming standards:-

Check:-this url

And you can expect to get questions on them

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15045

Yes, you do have to know about the conventions for Java Beans, but that is something different than the document that Adithi refers to (Code Conventions for the Java Programming Language). You do not need to know that document to do SCJP.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Adithi Palli

Joined: Aug 06, 2007
Posts: 7
Thank You Raef and Jesper.

Bob Ruth
Ranch Hand

Joined: Jun 04, 2007
Posts: 320
True, you may not need to know it for the test..... but....

you are going to be writing code to train for the test. It is a simple enough document, it takes about 10 minutes to read through and it will set a good foundation for writing "read-able, maintainable" code. I would advise studying and using it early on to set the pattern in your mind now.

SCJP - 86% - June 11, 2009
Adithi Palli

Joined: Aug 06, 2007
Posts: 7
Thank You Bob for your advice. I will definitely try to follow it.

I agree. Here's the link:
subject: Java Code Conventions
It's not a secret anymore!