Results 1 to 4 of 4
  1. #1
    mochajava is offline Member
    Join Date
    Feb 2011
    Posts
    7
    Rep Power
    0

    Default is functionality in jdkvx and javase ver.x the same?

    hello,

    does the jdk version follow closely java se functionailty, in particular jdk7 following jave se7 and jdk6 functonaity following java se6 functionality?

    my question is with regards to the oracle tutorials,w here there are references to functionality in java se7 and jdk7

    "New in the Java SE 7 release, the fork/join framework is an implementation of the ExecutorServiceinterface that helps you take advantage of multiple processors. It is designed for work that can be broken into smaller pieces recursively."

    "In JDK 7, java.util.concurrent includes a convenience class, ThreadLocalRandom,"

    i want to stick to JDK6/Java se6, not sure if jdk and java se are synonymous?

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    Java SE is the runtime environment - its what runs the application you write. JDK is the development kit, it allows you to write the code itself and compile it. The JDK and Java SE (JVM or JRE) versions do correspond. Anything written in JDK 1.6.x and compiled for JRE 1.6.x will run on JRE 1.6.x or newer.

    Java 1.7 isn't out yet, I would stick to java 1.6 stuff. Anything that is tagged 1.7 specific probably wont work on 99.9% of peoples machines unless they have the 1.7 beta installed. 1.6 is quite robust and should do everything you need!

  3. #3
    mochajava is offline Member
    Join Date
    Feb 2011
    Posts
    7
    Rep Power
    0

    Default

    thanks for the reply,

    so there is a correspondence in the sense that anything that is written in jdk 1.6.x is not guaranteed to run on JRE1.5.x, correct?

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    If it is compiled specifically for 1.6 then it will require 1.6. However, you can use 1.6 and target any older version - 1.5, 1.4.2, etc... You're just limited in the code features you use.

    So if you are running 1.6 and only use 1.4.2 features, and target 1.4.2 at compile time, then you can create a program that runs on everything from 1.4.2 and newer.

    At this point, 1.6 has been around for so long, I think you're safe in targeting 1.6 unless you have the need to work with some really legacy stuff.

Similar Threads

  1. Tab & Alt Tab functionality in JTable
    By nith21 in forum AWT / Swing
    Replies: 0
    Last Post: 02-01-2011, 11:50 AM
  2. Midlet migration to JavaSe
    By shamun in forum Java Applets
    Replies: 13
    Last Post: 05-19-2010, 03:55 AM
  3. Apache / Tomcat and a separate JavaSE program
    By lambi in forum Networking
    Replies: 6
    Last Post: 03-30-2010, 09:00 AM
  4. Database JPA,JTA,Validator,etc. on JavaSE
    By jicxicmic in forum New To Java
    Replies: 0
    Last Post: 08-31-2009, 03:49 PM
  5. Using USB in JavaSE
    By hobbyist in forum New To Java
    Replies: 0
    Last Post: 01-26-2008, 12:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •