Features of Java - Core Java Tutorial - Studytonight
Features of Java - Core Java Tutorial - 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.
EnhancedProductivitybyprovidingOptionalClassesfeature,LamdaExpressions,Streamsetc.
EaseofUse
ImprovedPolyglotprogramming.APolyglotisaprogramorscript,writteninaformwhichisvalidinmultipleprogramminglanguagesanditperforms
thesameoperationsinmultipleprogramminglanguages.SoJavanowsupportssuchtypeofprogrammingtechnique.
ImprovedSecurityandperformance.
Prev(overviewofjava.php) Next(settingclasspathforjava.php)