Skip to main content

Introduction


What is java?

 Java is Programming language developed by sun micro system in 1991.
 It is current “Hot ” language and almost object oriented. It has Vast  Library  of Predefined  Objects and Operation and for running java code require Development tool kit.

Why Java Different than Other Languages.

-Java Provide Some future which is Different than other Languages.

1.Java is  simple

Java is simple because   syntax of java is same as C and C++. Programmer who familiar with c and  c++  will have much easy to learn java Languages.Also provide automatic Memory management so no need to Write Code For That.


2. Java is  Protable.

There are no implementation-dependent aspects of the language specifications. For example, the sizes of primitive data types and the behavior of the arithmetic on them are specified. This contributes to
making programs portable among different platforms such as Windows, Mac, and Unix.


3. Java is  Robust.

Java provides support for error checking at various stages: early checking at compile time, and dynamic checking at run time. This eliminates some situations that are error prone such as pointers in the C language.


4. Java is  Multithreaded.

Java provides support for multithreaded programming  like in Game Background Sound when playing game.


5. Java is  High Performance.
 java has JIT. The Just-In-Time (JIT) compilers improve the performance of interpreting the byte code by caching the interpretations.


6. Java is  Distributed.
Java offers extensive support for the distributed environment of the Internet.


7. Java is  Architecture neutral.The Java compiler compiles  source code into byte code, which does not depend upon any machine architecture, but can be easily translated into a specific machine by a JVM for that machine.


8. Java is  Dynamic.
New code can be added to the libraries without affecting the applications that are using the libraries, run time type information can be found easily, and so on.


9. Java is  Interpreted.The Java compiler compiles the source code into byte code, which can be executed on any machine by the Java interpreter of an appropriate JVM. 

Comments

Popular posts from this blog

Java 8 installation

Java 8 installation setup:       First of all ,we need to install java 8 jdk in your  machine.so for that you can download  it from following  url. click here download  jdk 1.8.0_11 and install it on your machine. Once installation has been done. Please checkout version of jdk. C:\Users\hp>java -version java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) Java HotSpot(TM) Client VM (build 25.11-b03, mixed mode, sharing) once you have installed Java on your machine, you would need to set environment variables to point to correct installation directories                                                       ...

HashMap in Java

    -What is HashMap:       A HashMap has value and  key. store value based on Key. HasMap implements the Map interface and extends AbstractMap class.       Allow only one null as key and can contain   multiple null value.       Also Conatin Order of element.         HasMap----extend---->AbstractMap----implement---->Map                 Now we see how to Put and Retrive value from HashMap.                Example.             import java.util.*;               class MapTest{                        public static void main(String args[]){     HashMap<Integer,String> map=new HashMap<Integer,String>();     map.put(1,"vjp");   map.put(...

What is java 8

What is java 8?  Java 8   is a major release of java development.  Java 8 initial version  was released on 18 march 2014.  Java 8 changes are done both at JVM and compiler level.  Java 8 provide following feature:              1)support functional  programing language. 2)new java script engine. 3)new date time api. 4)new streaming api. 5) Lambda expression. 6)  support Default method implementation. 7) support  Method reference.