Java


Introduction of JAVA

Java is a high level programming language created by James Gosling from Sun Microsystem (Sun) in 1991 and released in 1995. It was developed by James Gosling and Patrick Naughton. Java runs on a number of platforms, such as windows, Mac Os, etc and the various versions of unix. so the Writing , compiling and debugging a program is easy in language java. It helps to create modular programs and reusable code it is also platform independ once write at one platform and run any platform. The first publicity available version of java(1.0) was acquired by the oracle corporation in 2010. The java is platform independent so once write a program to one platform and executes to multiple platforms. It is owned by oracle, so more than 3 billion devices run on java platform. It is a features of c and c++. Java code that runs on one platforms does not need to be recompiled to run on another platform; it’s called write once, run anywhere. There are many applications and websites that will not run without java installation on your machine.


Features of java

• Simple
• Object-oriented
• Platform independent
• Dynamic and Extensible
• Portable
• Robust
• Multi-threaded
• Architecture-neutral
• High performance
• Interpreted
• Secured
• Distributed

1. Simple: The java language is very easy to learn and its coding style is easy to read and write. According to Sun, java language is a simple programming language because java syntax is based on c++(so easier for programmers to learn it after c ++.It removes complexity because it does not use complex and difficult features of other languages like c language and c ++ language. Java has removed many complicated features, for example explicit pointers, operator overloading, etc. There is an automatic garbage collection in java so no need to remove unreferenced objects.

2. Object oriented: Java is an object oriented programming language and everything that is present in java is basically an object. In java, everything is an object. Object oriented

generally elaborates to the feasibility to organize the software as a combination of different types of objects that mutually incorporates both the data and behavior. It can be easily extended as it is based on object model. Java supports major-oriented programming features like Encapsulation, Abstraction and inheritance. A methodology that generally simplifies the software development and maintenance just by providing some rules is known as the object oriented programming.
3. Platform independent: Java is platform independent because it is different from other languages like c, c++ etc. It is generally known as a platform independent language that simplify means that it can be run on various platforms. The java platform differs from most other platforms in the sense that is a software based platforms that runs on the top of other hardware based platforms. Java code is compiled into intermediate format (bytecode) ,which can be executed on any systems for which java virtual machine is ported. This bytecode is a platform-independent code because it can be run on multiple platforms, i.e write once and run anywhere(WORA). That means you can write a java program once and run it on windows, Mac, Linux or Solaries without recompiling.
4. Dynamic and Extensible: java is a dynamic language and it is famous for supporting dynamic loading of classes. It means classes are loaded on demand. It also supports functions from its native language, i.e c and c ++. Java has Dynamic and Extensible means with the help of oops you can add classes, creating new classes through sub classes. Java supports dynamic compilation and automatic memory management that is also known as garbage collection.
5. Portable: java language is portable as we have discussed above it facilitates the programmer the feature of carrying the java bytecode to any platform without any implementation. So the Java is “ portable”, The portability actually comes from architecture . Java code can be executed on all major platforms. These provisions make java programs portable among different platforms such as windows, Unix, Solaries and Mac. Once have complied your java source code to bytecode ,those files can be used on any java- supported platform without modification , unlike other languages, which requires compiling the machine code for each platform. Everything related to storage: size of primitive data types.
6. Robust: Java is robust as it is capable of handling run time errors, supports automatic garbage collection and exception handling, and avoids explicit pointer concept. Java programming guides the programmers to adopt important programming habits required for the creation of highly reliable applications. Java language generally uses the strong memory management and lack of pointers helps in improving security issues. It helps in eliminating errors as it checks the code during both compile and runtime. Java virtual machines automatically de allocates the memory blocks and programmer do not have to worry about deleting the memory manually as in case of c/ c++.

–Write by Richa Sharma

Note:All Topics Update of java Soon