wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes JDK version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "JDK version" Watch "JDK version" New topic
Author

JDK version

Bas deRoss
Greenhorn

Joined: Sep 22, 2011
Posts: 8
Hello Everyone,

I am working on the 'Oracle Certified Master, Java SE 6 Developer' certification.
As the title suggests this certification is about Java SE 6 right?

But the instruction state that the Java 'platform must not have been superseded by a new production version for more than 18 months by the time you make your submission.'

So right now I am confused, should I develop on JDK6 or JDK7?

JDK6u33 was released June 2012 so I guess using this must be OK, but Java6 is an older version.
JDK7u5 was released May 2012, currently the newest Java version.
Because my application (urlybird) was developed on JDK6 it also works on JRE7.

If I would use JDK7 should I use new features which did not exist in JDK6?

Thanks in advance,
Bas
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5154
    
  12

JDK7 is released on July 28, 2011. So that means you still can use JDK6 until January 28, 2013.

If you decide to use JDK7 I would certainly use the newest features and language structures to show you have good knowledge about the JDK you are using.

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Bas deRoss
Greenhorn

Joined: Sep 22, 2011
Posts: 8
Thank you Roel!

My URLyBird must be ready in October this year, so I will stay with JDK6.

I guess using JDK7 won't get me extra points, while I may take some risk by developing with it.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5154
    
  12

B.D. Ross wrote:I guess using JDK7 won't get me extra points

That's true.
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 724
Roberto buddy suggested the latest JDK version.
I will run the same assignment on both JDK 6 and 7 to see if it works.
To be safe, I will write down platform: JDK 6 , JDK 7 in choice.txt
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

Himai Minh wrote:Roberto buddy suggested the latest JDK version.
I will run the same assignment on both JDK 6 and 7 to see if it works.
To be safe, I will write down platform: JDK 6 , JDK 7 in choice.txt

Well, I would apply a simple rule during assignment:
While doing 'xyz', are you gonna get extra points? If not, don't do it (because if something goes wrong, you'd lose the points). Besides OCMJD is specific to JDK 6. I would use latest release of JDK 6, instead of JDK 7.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Anayonkar Shivalkar wrote:While doing 'xyz', are you gonna get extra points? If not, don't do it (because if something goes wrong, you'd lose the points).


Well, I didn't really get what one thing has to do with the other. What does the JDK version has to do with things going right or wrong?


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

Roberto Perillo wrote:
Anayonkar Shivalkar wrote:While doing 'xyz', are you gonna get extra points? If not, don't do it (because if something goes wrong, you'd lose the points).


Well, I didn't really get what one thing has to do with the other. What does the JDK version has to do with things going right or wrong?

Well, I don't exactly remember whether using altogether different major version of JDK (i.e. JDK 7 for OCMJD - 6) would break any 'must' requirement.

Just out of curiosity, if someone uses JDK 7 for OCMJD (which is currently only for JDK 6),
1) Is it allowed?
2) If yes, upto what extent? I mean, what if user starts using specific features of JDK 7?

Yes, things won't go 'wrong' while using JDK 7 (whatever works in JDK 6 would work in JDK 7), but (unintentionally) breaking a 'must' requirement is quite unfortunate. And to avoid confusion, I would (still) recommend to use latest stable version of JDK 6.

Just my opinion.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5154
    
  12

As far as I know the SCJD has always been JDK independent...
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Roel De Nijs wrote:As far as I know the SCJD has always been JDK independent...


There you go. So, in my opinion, it really isn't a problem which version you are going to use for your solution. As long as you keep things simple, it is pretty likely that everything will run smoothly!
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1502
    
    5

Roberto Perillo wrote:
Roel De Nijs wrote:As far as I know the SCJD has always been JDK independent...


There you go. So, in my opinion, it really isn't a problem which version you are going to use for your solution. As long as you keep things simple, it is pretty likely that everything will run smoothly!

Agreed
Himai Minh
Ranch Hand

Joined: Jul 29, 2012
Posts: 724
Thanks.
It is fine to use JDK 7 for the JDK 6 SE exam with any OS. JDK 6/7 is OS independant.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

If I were you, I will use JDK6. If you decide to use JDK7, I suggest you NOT use the new features because this way you can compile with "-source 6" flag and still works. However if you have JDK7 new features, compiling in v6 will generate problems.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

K. Tsang wrote:If you decide to use JDK7, I suggest you NOT use the new features because this way you can compile with "-source 6" flag and still works. However if you have JDK7 new features, compiling in v6 will generate problems.


Well, since JDK7 has production versions, then it's ok to use its features. By the way K, good to see you around here again!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDK version
 
Similar Threads
jdk7 & jdk6 coexist on windows XP
Info concerning the updates to the SCJP 6 exam
Java 2 Platform - Java 6
MANIFEST.MF needed? ++ Ask Instrunction.html
byte code compatibility with 6 ?