7 Amazing Features of Java Every Programmer Must Know

Page 1

7

Amazing Features ofJava Every ProgrammerMust Know

The primary objective of Java programming language creation was to make it portable, simple and secure programming language. Apart from this, there are also some excellent features which play an important role in the popularity of this language.

Java is a compiled and interpreted language

Compiled & Interpreted Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platformindependent byte code. This byte code is distributed over the web and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on. Java byte code is translated on the fly to native machine instructions and is not stored anywhere.

Java solves the problem of platform-independence by using byte code. The Java compiler does not produce native executable code for a particular machine like a C compiler does. Instead it produces a special format called byte code. Java byte code is written byte by byte, pair of hexadecimal numbers represents 1 byte Being architecture-neutral and having no implementation dependent aspects of the specification makes Java portable. The compiler in Java is written in ANSI C with a clean portability boundary, which is a POSIX subset.

Platform Independent & Portable Language

Write Once and Run Everywhere !

Python 23% JavaScript 22% Java 21.2 % C # 8 % PHP 6.8 % C+ + 6.3 % C 5.1 % R 4.1 % Swift 3.6 % Most famous programming languages Java is Simple and Secure Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be easy to master. With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.

Architecture-neutral Software that is designed without regard to the target platform Java compiler generates an architectureneutral object file format, which makes the compiled code executable on many processors, with the presence of Java runtimesystem. JAVA BUZZWORDS

Java is Object Oriented Programming Language Java is purely an object oriented language due to the absence of global scope, Everything in java is an object, all the program codes and data resides within classes and objects. It comes with an extensive set of classes, arranged in packages, object model in javainsampleandeasytoextend.

Java is Robust & Distributed Language Java is easy to learn for programmers. Most people pick Java as their first programming language. Moreover, the popularity of Java still persists in the industry.

Robust Distributed Java is also a distributed language. Programs can be designed to run on computer networks. Java has a special class library for communicating using TCP/IP protocols. Creating network connections is very much easy in Java as compared to C/C++.

Java makes an effort to eliminate error prone codes by emphasizing mainly on compile time error checking and runtime checking. But the main areas which Java improved were Memory Management and mishandled Exceptions by introducing automatic Garbage Collector and Exception Handling.

In many applications, you have seen multiple tasks running simultaneously, for example, Google Docs where while typing text, the spell check and autocorrect task are Serverrunning.alsouses multithreading to provide its services to multiple client requests. In Java, you can create threads in two ways, either by implementing the Runnable interface or by extending the Thread class. Multi-Threading Thread is a lightweight and independent subprocess of a running program (i.e, process) that shares resources. And when multiple threads run simultaneously is called multi-threading.

Contact Us +91 D-58,www.cetpainfotech.comquery@cetpainfotech.com9212172602RedFMRoad,Sector 2, D Block, Sector 2, Noida, Uttar Pradesh 201301 Visit Us

THANK YOU!

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.