Java Programing laungage

Core Java Tutorial

Introduction of Core Java

How To Install JDk and Set of Path

Syntax of java Program

Difference between Java and C/C++

Advantage and Disadvantage of Java

What is Java

Why Java is not Pure Object Oriented Language

Java has Following Features/Characteristics

Limitation of Java Language and Java Internet

Common Misconception about Java

Simple Program of Java

Integrated Development Environment in java

Compile and Run Java Program

Applet and Comments in Java

Tokens in Java

Keywords in Java

Identifier and Variables in Java

Literals/Constants

Data Type in Java

Assignments and Initialization in Java

Operators in Java

Rule of Precedence in Java

Operator on Integer and Separators in Java Programming

Java Control Flow of Statements

If and If-else Selection Statement

Nested If-else and If-else-If Selection Statement

switch case and conditional operator Selection Statement

for and while Loop

do..while and for each Loop

break and labeled break statement

continue and labeled continue statement

return Statement and exit() Method

Escape Sequence for Special Characters and Unicode Code

Constants and Block or Scope

Statement in Java

Conversions between Numeric Types in Java

Import Statement in Java

User Input in Java using Scanner Class

User Input in Java using Console Class

Array in Java

One Dimensional Array

Two Dimensional Array

Two Dimensional Array Program

Command Line Argument in Java

String args Types in Java

Uneven/Jagged array in java

Math Class Function and Constant

Math Class all Function used in a program

Enumerated Types in Java

Object Oriented Programming v/s Procedural Programming

Object Oriented Programming Concepts in Java

Introduction to Class,Object and Method in Java

Class Declaration in Java

Class & Objects in java

Encapsulation in Java

Modifiers/Visibility for a Class or Interrface or member of a Class

Polymorphism in Java

Runtime polymorphism (dynamic binding or method overriding)

JDK1.6 Features with Examle:

The Java SE 6.0 mainly aims at providing compatibility, stability, security, and quality. There are several interesting enhancements in this release, especially in the areas of monitoring and management (JMX), web services, scripting language support, database connectivity, support for annotations, and security. There are also several new features in the JDBC API.

Previous Home Next
Following are few JDK1.6 Features & Enhancements:
  1. Collections Framework Enhancements: Java SE 6 API provides bi-directional collection access. New collection interfaces includes Deque, NavigableSet, NavigableMap.

    New Collection classes include ArrayDeque.

    • ArrayDeque : Efficient resizable-array implementation of the Deque interface. It implements a double-ended queue, which allows efficient insertion and deletion at both ends. This an excellent choice for stacks and queues.

      Example

      ArrayDeque<String> a = new ArrayDeque<String>();
      for (Iterator<String> iter = a.iterator(); iter.hasNext(); ) {
      System.out.println(iter.next());
      }
      
    • LinkedList : implements the Deque, interface. These operations allow linked lists to be used as a stack, queue, or double-ended queue.
    • TreeSet : implements the NavigableSet interface.
    • TreeMap : implements the NavigableMap interface.
  2. java.io Enhancements: New class "Console" is added and it contains methods to access a character-based console device. The readPassword() methods disable echoing thus they are suitable for retrieval of sensitive data such as passwords. The method System.console () returns the unique console associated with the Java Virtual Machine.

  3. Internationalization Enhancements: To enable plug-in of locale sensitive data (e.g., date format strings) and services (e.g., date formatters), some Service Provider Interfaces (SPIs) for locale-sensitive classes in the java.text and java.util packages have been added.These SPIs make it much easier for developers to provide support of more locales in addition to the currently available locales in Java SE - Unicode Normalizer API, Internationalized Domain Names Support, Japanese Imperial Calendar Support, ResourceBundle Enhancements.

  4. JMX API Enhancements: The Java Management Extensions (JMX) technology became a part of the Java platform in the Java 2 Platform, Standard Edition (J2SE) 5.0. The most significant enhancements that have been made to the JMX API in the Java Platform, Standard Edition (Java SE) 6 are listed below.

    • The JMX API now fully supports Generics.
    • MXBeans have been added. MXBeans are MBeans that provide a convenient way to bundle related values together without requiring clients to be specially configured to handle the bundles. A defined set of MXBeans already existed in the J2SE 5.0 platform, but Java SE 6 introduces an API to allow you to program your own custom MXBeans.
    • MBean Descriptors have been added
    • A new class, javax.management.JMX, has been added to house constants and static methods.
  5. Scripting for the Java™ Platform: Java SE 6 includes JSR 223: Scripting for the Java™ Platform API. This is a framework by which Java Applications can “host” script engines. Sun’s implementation of Java SE 6 includes an example script engine based on Mozilla Rhino: JavaScript for Java. The scripting framework supports third-party script engines through jar “service discovery” mechanism. It is possible to “drop” any JSR-223 compliant script engine in the CLASSPATH and access the same from your Java applications (much like JDBC drivers, JNDI implementations are accessed).

    Example

    import javax.script.*;
    public class EvalScript {
    public static void main(String[] args) throws Exception {
    // create a script engine manager
    ScriptEngineManager factory = new ScriptEngineManager();
    // create a JavaScript engine
    ScriptEngine engine = factory.getEngineByName(“JavaScript”);
    // evaluate JavaScript code from String
    engine.eval(“print(‘Hello, World’)”);
    }
    }
    
  6. Increased Developer Productivity:

    • JDBC 4.0 support (JSR 221): Improved database connectivity such as JDBC 4.0 and automatic java.sql.Driver discovery.
    • Improvements to the Java Platform Debug Architecture (JPDA) & JVM Tool Interface.
    • Hotspot JVM for Solaris provides hooks for the Solaris DTrace system debugging utility.
    • JavaScript integrated and included with the platform.
    • Scripting languages framework extends support for Ruby, Python, and other languages.
    • Complete light-weight platform for web services, right out of the box.
  7. GUI:

    • JFC and Swing integration with desktop by using Windows API.
    • Java 2D integration with desktop such as using desktop anti-aliasing font settings.
    • Splash screen direct support and can be shown before JVM started.
    • System tray support with ability to add icons, tool tips, and pop-up menus to the Windows or any other system tray (such as Gnome).
    • Unify Browser and Desktop Experience.
  8. Security Features and Enhancements:

    • Native platform Security (GSS/Kerberos) integration.
    • Java Authentication and Authorization Service (JAAS) login module that employs LDAP authentication.
    • New Smart Card I/O API.
    • New Security Request Framework enables requesting of certificates over a number of protocols.
    • JDK 5.0 main features include Generics, Autoboxing, Annotations, static imports and Enums. JDK 1.6 features include all JDK 5.0 features.
  9. JavaTM API for XML Processing (JAXP): The Java API for XML Processing (JAXP) enables applications to parse, transform, validate and query XML documents using an API that is independent of a particular XML processor implementation. JAXP provides a pluggability layer to enable vendors to provide their own implementations without introducing dependencies in application code. Using this software, application and tool developers can build fully-functional XML-enabled Java applications for e-commerce, application integration, and web publishing.

    The Java Platform, Standard Edition version 6.0 includes JAXP 1.4. JAXP 1.4 is a maintenance release of JAXP 1.3 with support for the Streaming API for XML (StAX).

  10. JDBC 4.0 Enhancements : Java SE 6 includes several enhancements to the Java Database Connectivity (JDBC) API. These enhancements will be released as JDBC version 4.0. The main objectives of the new JDBC features are to provide a simpler design and better developer experience

    The major features added in JDBC 4.0 include:

    • Auto-loading of JDBC driver class
    • Connection management enhancements
    • Support for RowId SQL type
    • DataSet implementation of SQL using Annotations
    • SQL exception handling enhancements.
Previous Home Next