aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Java Code Conventions" Watch "Java Code Conventions" New topic
Author

Java Code Conventions

Adithi Palli
Greenhorn

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

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

Thanks,
Adithi
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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: 1527
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.
thanks
deepak


SCJP, SCWCD, SCBCD
Adithi Palli
Greenhorn

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

Regards,
Adithi
Raef Kandeel
Ranch Hand

Joined: Aug 05, 2007
Posts: 87
Dear,

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


SCJP, SCWCD
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14270
    
  21

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
Greenhorn

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

Regards,
Adithi
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.


------------------------
Bob
SCJP - 86% - June 11, 2009
Adithi Palli
Greenhorn

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

Thanks,
Adithi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Code Conventions