Labels

October 6, 2012

Java Versions, Features and History




On this "Java Version History" describes about the history of different java version.
From it's inception, java language is undergone several changes.
From version 1.4, Java language development is undergone according to the rules of Java Community Process (JCP), and they uses Java Specification Requests(JSR) to propose and specify improvements and changes to the Java Language.



Java Versions :=



  • JDK 1.0 (1996, January 23), Codename Oak. [8 packages with 212 classes]
  • JDK 1.1 (1997, February 19) [23 packages with 504 classes]
  • J2SE 1.2 (1998, December 8), Codename Playground. [59 packages with 1520 classes]
  • J2SE 1.3 (2000, May 8 ), Codename Kestrel. [76 packages with 1842 classes]
  • J2SE 1.4 (2002, February 6), Codename Merlin. [135 packages with 2991 classes]
  • J2SE 5.0 (2004, September 30), Codename Tiger. [166 packages, over 3279 classes]
  • Java SE 6 (2006, December 11), Codename Mustang. [203 packages with 3793 classes]
  • Java SE 7 (2011, July 28), Codename Dolphin. [209 packages with 4024 classes]


Java Features :=


1. Java SE 7


  • [ Code named Dolphin ]

  • New features in Java SE 7

    • Strings in switch Statement
    • Type Inference for Generic Instance Creation
    • Multiple Exception Handling
    • Support for Dynamic Languages
    • Try with Resources
    • Java nio Package
    • Binary Literals, underscore in literals
    • Diamond Syntax
    • Automatic null Handling

    2. Java SE 6



    [Code named Mustang]

    • New features in Java SE 6

    • Scripting Language Support
    • JDBC 4.0 API
    • Java Compiler API
    • Pluggable Annotations
    • Native PKI, Java GSS, Kerberos and LDAP support.
    • Integrated Web Services.
    • Lot more enhancements.

    3. J2SE Version 5.0

    [Code named Tiger]

    • New features in Java SE 5.0

      • Generics
      • Enhanced for Loop
      • Autoboxing/Unboxing
      • Typesafe Enums
      • Varargs
      • Static Import
      • Metadata (Annotations)
      • Instrumentation


      4. J2SE Version 1.4

      [Code named Merlin]

      • New features in Java SE 1.4

          • XML Processing
          • Java Print Service
          • Logging API
          • Java Web Start
          • JDBC 3.0 API
          • Assertions
          • Preferences API
          • Chained Exception
          • IPv6 Support
          • Regular Expressions
          • Image I/O API

          5. J2SE Version 1.3

          [Code named Kestrel]

          • New features in Java SE 1.3

                • Java Sound
                • Jar Indexing
                • A huge list of enhancements in almost all the java area.

                6. J2SE Version 1.2

                Code named Playground and released on December 8, 1998.

                • New features in Java SE 1.2

                        • Collections framework.
                        • Java String memory map for constants.
                        • Just In Time (JIT) compiler.
                        • Jar Signer for signing Java ARchive (JAR) files.
                        • Policy Tool for granting access to system resources.
                        • Java Foundation Classes (JFC) which consists of Swing 1.0, Drag and Drop, and Java 2D class libraries.
                        • Java Plug-in
                        • Scrollable result sets, BLOB, CLOB, batch update, user-defined types in JDBC.
                        • Audio support in Applets.

                        7. JDK Version 1.1

                        New features in Java SE 1.1

                                  • JDBC (Java Database Connectivity)
                                  • Inner Classes
                                  • Java Beans
                                  • RMI (Remote Method Invocation)
                                  • Reflection (introspection only)

                                  8. J2SE Version 1.0

                                  Codenamed Oak and released on January 23, 1996.


                                  Reference Link:=
                                  1. http://javapapers.com/core-java/java-features-and-history/

                                  September 17, 2012

                                  Avoiding browser popup for 401


                                  I was facing this issue recently, too. Since you can't change the browser's default behavior of showing the popup in case of a 401 (basic or digest authentication), there are two ways to fix this:



                                  • Change the server response to not return 401. Return a 200 code instead and handle this in your JQuery client.
                                  • Change the method that you're using for authorization to a custom value in your header. Browsers will display the popup for Basic and Digest. You have to change this on both the client and the server.
                                  • headers : { "Authorization" : "BasicCustom" }
                                  • Alternatively, if you can customize your server response, you could return a 403 Forbidden.
                                  • The browser will not open the authentication popup and the jquery callback will be called.


                                  Please also take a look at.
                                  1. http://loudvchar.blogspot.in/2010/11/avoiding-browser-popup-for-401.html
                                  2. http://stackoverflow.com/questions/1297243/spring-security-how-to-mention-both-form-based-and-basic-authentication

                                  July 20, 2012

                                  Top Java ebooks


                                  1. The Java Language Specification, Third Edition


                                  book cover

                                  Download : http://java.sun.com/docs/books/jls/
                                  Author : James Gosling, Bill Joy, Guy Steele, Gilad Bracha
                                  Description : Written by the inventors of the Java Language Specification. This book provides complete and detailed converge of the Java programing language.

                                  2. Thinking In Java, 3rd Edition

                                  book cover

                                  Download : http://www.mindviewinc.com/Books/downloads.html
                                  Author : Bruce Eckel
                                  Description : Great and recommended Java book, chapters and tutorials are posted, public review, correction.

                                  Note
                                  Thinking in Java, 3rd edition is still free, but you need to pay for the latest 4th edition.


                                  3. The Java Tutorial 4th Edition


                                  book cover

                                  Author : Sharon Zakhour, Scott Hommel, Jacob Royal, Isaac Rabinovitch, Tom Risser, Mark Hoeber
                                  Description : Accurate and up-to-date Java tutorials, and you can download the entire Java tutorials in bundle.

                                  4. Core Servlets And JavaServer Pages, Second Edition



                                  book cover


                                  Download : http://pdf.coreservlets.com/
                                  Author : Marty Hall and Larry Brown
                                  Description : Complete and detailed coverage of using Servlets and JavaServer Pages (JSP).

                                  5. Introduction To Programming Using Java, Sixth Edition


                                  book cover


                                  Download : http://math.hws.edu/javanotes/
                                  Author : David J. Eck
                                  Description : Good book for beginning programmers, and might also be useful for experienced programmers.

                                  6. Effective Java, Second Edition

                                  Effective Java (2nd Edition)
                                  Effective Java

                                  Download  : http://cyclo.ps/books/Prentice.Hall.Effective.Java.2nd.Edition.May.2008.pdf
                                  Author : Joshua Bloch