Please Explain JDk1.6 feaures

Posted on 2012-09-09
Last Modified: 2012-09-15
I am preparing for an inerview i want to brush up my skills

Could you please explain jdk1.6 features
Question by:stmani2005
    LVL 16

    Expert Comment

    LVL 8

    Author Comment

    what is the use and advantage of generics
    LVL 16

    Expert Comment

    There are any number of  sources for that. Look in the link and where there are other links to articles. No point quoting it all here again. Read the API. Get Flanagan's Nutshell book, for example; Oracle website tutorials. Too many sources to mention.
    LVL 12

    Expert Comment

    LVL 8

    Author Comment

    could you give me three most commonly used Jdk1.6 features compared to jdk1.5

    please list out 3
    LVL 1

    Accepted Solution

    Hi stmani2005,

    J2SE 5.0 (september 30, 2004) tiger [originally numbered 1.5]

    Generics: provides compile-time (static) type safety for collections and eliminates the need for most typecasts (type conversion).
    Metadata: also called annotations; allows language constructs such as classes and methods to be tagged with additional data, which can then be processed by metadata-aware utilities.
    Autoboxing/unboxing: automatic conversions between primitive types (such as int) and primitive wrapper classes (such as integer).
    Enumerations: the enum keyword creates a typesafe, ordered list of values (such as day.monday, day.tuesday, etc.). Previously this could only be achieved by non-typesafe constant integers or manually constructed classes (typesafe enum pattern).
    Swing: new skinnable look and feel, called synth.
    Var args: the last parameter of a method can now be declared using a type name followed by three dots (e.g. Void drawtext(string... Lines)). In the calling code any number of parameters of that type can be used and they are then placed in an array to be passed to the method, or alternatively the calling code can pass an array of that type.
    Enhanced for each loop: the for loop syntax is extended with special syntax for iterating over each member of either an array or any iterable, such as the standard collection classesfix the previously broken semantics of the java memory model, which defines how threads interact through memory.
    Automatic stub generation for rmi objects.
    Static imports concurrency utilities in package java.util.concurrent.
    Scanner class for parsing data from various input streams and buffers.
    StringBuilder class (in java.lang package)

    Java SE 6 (december 11, 2006)

    sun replaced the name "J2SE" with java se and dropped the ".0" from the version number.
    Beta versions were released in february and june 2006, leading up to a final release that occurred on december 11, 2006.

    The current revision is update 14 which was released in may 2009.

    Support for older win9x versions dropped.
    Scripting lang support: Generic API for integration with scripting languages, & built-in mozilla javascript rhino integration
    Dramatic performance improvements for the core platform, and swing.
    Improved web service support through JAX-WS JDBC 4.0 support
    Java compiler API: an API allowing a java program to select and invoke a java compiler programmatically.
    Upgrade of JAXB to version 2.0: including integration of a stax parser.
    Support for pluggable annotations
    Many GUI improvements, such as integration of swingworker in the API, table sorting and filtering, and true swing double-buffering (eliminating the gray-area effect).

    Java se 6 update 10

    A major enhancement in terms of end-user usability.
    Java Deployment Toolkit, a set of javascript functions to ease the deployment of applets and java web start applications.
    Java Kernel, a small installer including only the most commonly used jre classes. Enhanced updater.
    Enhanced versioning and pack200 support: server-side support is no longer required.
    Java quick starter, to improve cold start-up time.
    Improved performance of java2D graphics primitives on windows, using direct3D and hardware acceleration.
    A new Swing look and feel called NIMBUS and based on synth.
    Next-generation java plug-in: applets now run in a separate process and support many features of web start applications.

    Java se 6 update 12

    This release includes the highly anticipated 64-bit java plug-in (for 64-bit browsers only), windows server 2008 support,
    and performance improvements of java and JAVAFX applications.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Java MSI Solution 3 53
    Problem to setup 18 67
    sumDigits  challenge 7 41
    wordcount challenge 11 51
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now