100% found this document useful (1 vote)
273 views

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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
273 views

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
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
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