This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes jdk question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "jdk question" Watch "jdk question" New topic
Author

jdk question

Vadik Mironov
Greenhorn

Joined: Jun 24, 2005
Posts: 9
Hi,

I got an assignment recently and for now I have only one question. As far as I understood I may use for development jdk1.4.(something latest) and jdk1.5.0. But the question is, what should I do with some code differencies between two platforms. Is it permitted to use some Java 5 specific code and language features? (like asserts, templates and new concurrency classes)
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
of course. As long as you state you're using 1.5 you can use the full force of the platform.
If you state you're using 1.4 of course you can't use any of the new features as your sources are supposed to compile with a 1.4 compiler and the classes to run on a 1.4 runtime (which 1.5 compiled classes won't).


42
Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
Use JDK 1.5 without NIO. JDK 1.5 has more function on string & other lot of things but mention that in your version.txt


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
Vadik Mironov
Greenhorn

Joined: Jun 24, 2005
Posts: 9
I also thought about features of 1.5, but had some concerns. OK, now it is clear, thanks a lot
Vadik Mironov
Greenhorn

Joined: Jun 24, 2005
Posts: 9
No NIO, but what about java.util.concurrent.* packages. Is it allowed?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Vadik,
No NIO, but what about java.util.concurrent.* packages. Is it allowed?
Anything that is not explicitly disallowed in your instructions is implicitly allowed.

And yes, that does mean that NIO is allowed in most cases.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
 
subject: jdk question
 
Similar Threads
mod operator efficiency
Do IDEs use Reflection API
code correction!
Nothing available in JSP from Servlet
Synchronous objects.