Pages

Sunday, 7 June 2015

Why java file need at least one class.?



*) Classes that Combine all the data and the methods(code) to       Manipulate the data you can also observed (think) of a class as a  Template used to create specific objects. 

*) From that template you can instantiate(create) many objects. All java programs consist of at least one class.

*) For Example :-

Employee class data like:  EmployeeName,Year,DateOfBirth,Salary etc.
Methods like : store/get the value of each piece of data,promote to next year etc.

*) Ex. class Employee

Features of java



*) Features of java
     *) Simple
     *) Object-Oriented
     *) Distributed
     *) Interpreted
     *) Robust
     *) Secure
     *) portable
     *) multithreaded
     *) Dynamic
*) Java is Simple
     *) fixes some clumsy features of c++
     *) no pointers
     *) automatic garbage collection
     *) rich pre-defined class library
*) Learning and practicing java is easy because of resemblance    with c and C++.

*) Java is Object-Oriented
     *)  All functions are associated with objects
     *) Focus on the data(objects) and method manipulating the data
     *) Almost all data types are objects (file,strings,etc.)
     *) potentially better code organization and reuse
*)it supports concept of Inheritance ,polymorphism ,   encapstulation,data hiding etc.
     *)  Unlike C++, Java is purely OOP.

*) java is Distributed
*) java is supports network programming like client server paradigram like client-server paradigram and implementation of simple client server application
*) java is also support web service protocol
*) Java is designed for use on network; it has an extensive library which works inagreement with TCP/IP.

*) Java is interpreted
*) java compiler generate byte-codes,not native  machine code
*)  the compiled byte-code are plateform independent
*) java bytecode are translated on the fly to machine readable    instruction in runtime(java virtual machine)
*) java programs are compiled to generate the byte code. This    byte code can be downloaded and interpreted by the interpreter. Class file will have byte code instruction and JVM which contains an interpreter will execute the byte code.

*) Java is Robust(Strong/powerful)

     *) Extensive compile-time and runtime error checking
     *) No pointers but real arrays.
     *) memory corruption or unauthorized memory accesses are impossible
     *) Automatic garbage collection tracks objects usage over time
     *) Java programs will not crash because of  its exception handling
                and its memory management features.

*) java is Secure
     *) Usage in networked environments require more security
     *) memory allocation model is a major defence
     *) access  restriction are forced(private,public)
     *) Java is designed for use on Internet. Java enables the construction of virus-free,
                 tamper free systems.

*) Java is portable

     *) same application runs on all platfor m
     *) The size of primitive data types are always the same.
     *) the libraries define portable interfaces
     *) Java does not have implementation dependent aspects and it yields or gives same
                 result on any machine.

*) Java is multithereaded

     *) Multiple concurrent thread of executation can run simultaneously
     *) Executing different parts of program simultaneously is called multithreading.
    This is an essential feature to design server side programs.

*) Java is Dynamic

     *) java is design to adapt to evolving environment
     *) library can freely add new methods and instance variables without any effect on their          clients
     *) can check the class type in runtime
     *) We can develop programs in Java which dynamically change on Internet (e.g.:
                 Applets).

Thursday, 4 June 2015

Diffrent Kind of verson's of java



This Article Gives you history of verson's on perticular Time.


*) JDK Version 1.0
         Code Named Oak and released on January 23, 1996.

*) JDK Version 1.1
    Released on February 19, 1997
*)  New features in JDK 1.1
  • JDBC (Java Database Connectivity)
  • Inner Classes
  • Java Beans
  • RMI (Remote Method Invocation)
  • Reflection (introspection only)
 *) J2SE Version 1.2
Code named Playground and released on December 8, 1998.
New features in J2SE 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.

*) J2SE Version 1.3
Code named Kestrel and released on May 8, 2000.
*) New features in J2SE 1.3
  • Java Sound
  • Jar Indexing
  • A huge list of enhancements in almost all the java area.
*) J2SE Version 1.4
Code named Merlin and released on February 6, 2002 (first release under JCP).

*) New features in J2SE 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

*) J2SE Version 5.0
Code named Tiger and released on September 30, 2004.

*) New features in J2SE 5.0
  • Generics
  • Enhanced for Loop
  • Autoboxing/Unboxing
  • Typesafe Enums
  • Varargs
  • Static Import
  • Metadata (Annotations)
  • Instrumentation
*)Java Version SE 6
Code named Mustang and released on December 11, 2006.

*) 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.

*)Java Version SE 7
Code named Dolphin and released on July 28, 2011.
*)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
*) Java SE 8
Java 8 was released on 18 March 2014. The code name culture is dropped with Java 8 and so no official code name going forward from Java 8.
*) New features in Java SE 8
  • Lambda Expressions
  • Pipelines and Streams
  • Date and Time API
  • Default Methods
  • Type Annotations
  • Nashhorn JavaScript Engine
  • Concurrent Accumulators
  • Parallel operations
  • PermGen Error Removed
  • TLS SNI