Java has Following Features Characteristics
Categories: Core Java
Java is providing many characteristicsSimple, portable, object oriented, Interpreted, Distributed, High Performance,Robust, Multithreaded, Secure, Dynamic, Architecture Neutral ProgrammingLanguage which provide build-in internet base API.
- Java is Simple Programming Language
Java is a simpleprogramming language can't need to learn prior to other basic language e.g c,c++ etc .Java is easy way to write, compile, debug, then learn other language.Java uses automatic memory allocation and garbage collection else C++ requiresthe programmer to allocate memory and to collect garbage, so these languagesare more complex. Java syntax are compare to c or c++. Java is no header file,pointer, union, operator overloading etc. Java provide more features andsecurity other language.
- Java as Portable Programming Language
Java is a portableprogramming language you can write on any editor and then compile then generatebyte code then byte code is executing any operating system, or any hardware isenable is jvm. Java provide applet application is designed to travel overinternet when web client request then byte code is downloaded on client sidethe java byte code will execute on local machine client side is presence of jvm.
- Java as Object Oriented Programming Language
java is object-orientedprogramming. Java is centered on creating objects, manipulating objects andmaking objects work together. This allows us to create an application inmodular programs and reusable code.
Java is use Oops:
- Encapsulation.
- Inheritance.
- Polymorphism
- Java as Interpreted Programming language
An interpreter is executethe byte code (.class file) The byte code is machine independent and run on anymachine that has a Java interpreter. The program is compiled only once, andthen byte code generated and jvm is a interpreted and execute one by onethrough just in time means piece by piece information is show. Java byte codeis optimized set of instructions and this execute is anywhere presence of jvm.Jvm is a interpreted entire program is execute one by one and line by line userdemand and execute on the machine. The java interpreter are convert the bytecode into the machine code.
- Java as Distributed Programming Language
Java is used distributedcomputing means involves several computers on a network working together. Javais designed to make distributed computing easy with the networking capabilitythat is inherently integrated into it. java provide the socket programming andnetwork programming. Java application are running on different number of systemsthen first application object is called another application connected to eachother.
- Java as High-Performance Language
Java performance is highit is used interpreter to execute the byte code. The interpreter is convertbyte code into machine language is this process using JIT (just in time) is oneby one information is execute machine Code.Java is provide automatic garbagecollector runs as a background , java is high performance that memory iaavailable when required .
- Java as robust programming language
Robust means reliable andno programming language can really assure reliability. Java puts a lot ofemphasis on early checking for possible errors, as Java compilers are able todetect many problems that would first show up during execution time in otherlanguages. Java has the strong memory allocation and automatic garbagecollection mechanism. It provides the powerful exception handling and typechecking mechanism as compare to other programming languages. Compiler checksthe program whether there any error and interpreter checks any run time errorand makes the system secure from crash. All of the above features makes thejava language robust.
- Java as multithreaded programming language
Java is a multithreadinglanguage which means we can use java developed multithread program.Multithreaded is the capability for a program to perform several taskssimultaneously within a program. Multithreading is a necessity in visual andnetwork programming. A multithreaded program contains two or more parts thatcan run concurrently, and each part can handle different task at the same timemaking optimal use of the available resources specially when your computer hasmultiple CPU.
- Java as Secure Programming Language
Java provide a lot ofsecurity feature; Java is one of the first programming languages to considersecurity as part of its design. The Java language, compiler, interpreter, andruntime environment were each developed with security in mind. Also, java haseliminated pointers which can create a lot of unwanted and confusing memoryreferences resulting in memory waste, no readability i.e. contains byte codeunderstandable to only JVM, no virus will infect the byte code. Even if thevirus entered into byte code the jvm doesn't understand it, so jvm keeps theseinstructions as it is. No executable code will be generated to this virus.
- Java as Dynamic Programming Language
Dynamic language doestask at run time. Java is more dynamic programming language to other languagesc ,c++. Dynamic language may also perform some amount of self-checking atruntime, which would normally be done ahead of time in a compilation stage.Although a dynamic language offers runtime flexibility and is generally easierto program, it does not eliminate the programmer's responsibility forunderstanding the interactions that will take place. The term may also refer tointerpreted languages in general, which convert source code or bytecode tomachine language at runtime, as well as to just-in-time compilation, theprocess of compiling program the moment before it is executed.
- Java as Platform Independent programming Language
Java programs write onceand run on any operating system or any hardware. Java source code compile thenconvert into byte code (.class) this .class is executing through jvm anyoperating system or hardware. Byte code is optimized set of instructionsexecute anywhere this byte code jvm enabled platform is execute than the javacompiler generates an architecture-neutral object file format. The compiledcode is executable on many processors, given the presence of the Java runtimesystem.