100% found this document useful (1 vote)
254 views4 pages

Features of Java - Core Java Tutorial - Studytonight

This document provides an overview of the key features of the Java programming language, including that it is simple, object-oriented, robust, platform independent, secure, supports multi-threading, is architecturally neutral, portable, and enables high performance. It also briefly mentions new features introduced in Java 8 like lambda expressions, streams, optional classes, and improved polyglot programming, security, and performance.

Uploaded by

haibye424
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
100% found this document useful (1 vote)
254 views4 pages

Features of Java - Core Java Tutorial - Studytonight

This document provides an overview of the key features of the Java programming language, including that it is simple, object-oriented, robust, platform independent, secure, supports multi-threading, is architecturally neutral, portable, and enables high performance. It also briefly mentions new features introduced in Java 8 like lambda expressions, streams, optional classes, and improved polyglot programming, security, and performance.

Uploaded by

haibye424
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

(http://www.studytonight.

com/)

CORE JAVA

SEETHEINDEX

Features of Java
TheprimereasonbehindcreationofJavawastobringportabilityandsecurityfeatureintoacomputerlanguage.Besidethesetwomajorfeatures,there
weremanyotherfeaturesthatplayedanimportantroleinmouldingoutthefinalformofthisoutstandinglanguage.Thosefeaturesare:

1) Simple

Javaiseasytolearnanditssyntaxisquitesimple,cleanandeasytounderstand.TheconfusingandambiguousconceptsofC++areeitherleftoutinJava
ortheyhavebeenreimplementedinacleanerway.

Eg:PointersandOperatorOverloadingarenotthereinjavabutwereanimportantpartofC++.

2) Object Oriented

InjavaeverythingisObjectwhichhassomedataandbehaviour.JavacanbeeasilyextendedasitisbasedonObjectModel.

3) Robust

Javamakesanefforttoeliminateerrorpronecodesbyemphasizingmainlyoncompiletimeerrorcheckingandruntimechecking.Butthemainareaswhich
JavaimprovedwereMemoryManagementandmishandledExceptionsbyintroducingautomaticGarbageCollectorandExceptionHandling.

4) Platform Independent

UnlikeotherprogramminglanguagessuchasC,C++etcwhicharecompiledintoplatformspecificmachines.Javaisguaranteedtobewriteonce,run
anywherelanguage.

OncompilationJavaprogramiscompiledintobytecode.Thisbytecodeisplatformindependentandcanberunonanymachine,plusthisbytecodeformat
alsoprovidesecurity.AnymachinewithJavaRuntimeEnvironmentcanrunJavaPrograms.

5) Secure

Whenitcomestosecurity,Javaisalwaysthefirstchoice.Withjavasecurefeaturesitenableustodevelopvirusfree,temperfreesystem.Javaprogram
alwaysrunsinJavaruntimeenvironmentwithalmostnullinteractionwithsystemOS,henceitismoresecure.

6) Multi Threading
Javamultithreadingfeaturemakesitpossibletowriteprogramthatcandomanytaskssimultaneously.Benefitofmultithreadingisthatitutilizessame
memoryandotherresourcestoexecutemultiplethreadsatthesametime,likeWhiletyping,grammaticalerrorsarecheckedalong.

7) Architectural Neutral

Compilergeneratesbytecodes,whichhavenothingtodowithaparticularcomputerarchitecture,henceaJavaprogramiseasytointrepretonanymachine.

8) Portable

JavaBytecodecanbecarriedtoanyplatform.Noimplementationdependentfeatures.Everythingrelatedtostorageispredefined,example:sizeof
primitivedatatypes

9) High Performance

Javaisaninterpretedlanguage,soitwillneverbeasfastasacompiledlanguagelikeCorC++.But,Javaenableshighperformancewiththeuseofjustin
timecompiler.

New Features of JAVA 8


BelowmentionedaresomeofthecoreupgradesdoneasapartofJava8release.Justgothroughthemquickly,wewillexplorethemindetailslater.

EnhancedProductivitybyprovidingOptionalClassesfeature,LamdaExpressions,Streamsetc.

EaseofUse

ImprovedPolyglotprogramming.APolyglotisaprogramorscript,writteninaformwhichisvalidinmultipleprogramminglanguagesanditperforms

thesameoperationsinmultipleprogramminglanguages.SoJavanowsupportssuchtypeofprogrammingtechnique.

ImprovedSecurityandperformance.

Prev(overviewofjava.php) Next(settingclasspathforjava.php)

You might also like