.Class notes Java Core Java : Complete Reference for the Really Impatient.
All for this textbook (2)
Written for
GITA Autonomous College
NA3550 (NA3550)
All documents for this subject (1)
Seller
Follow
arpitasahoo
Available practice questions
JAVA Flashcards
Flashcards10 Flashcards
$8.490 sales
Flashcards10 Flashcards
$8.490 sales
Some examples from this set of practice questions
1.
What is the difference between procedural and object-oriented programs?
Answer: a) In procedural program, programming logic follows certain procedures and the instructions are executed one after another. In OOP program, unit of program is object, which is nothing but combination of data and code. b) In procedural program, data is exposed to the whole program whereas in OOPs program, it is accessible with in the object and which in turn assures the security of the code.
2.
What are Encapsulation, Inheritance and Polymorphism?
Answer: ENCAPSULATION is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse.
INHERITENCE is the process by which one object acquires the properties of another object.
POLYMORPHISM is the feature that allows one interface to be used for general class actions.
3.
What is OOPs?
Answer: Object oriented programming organizes a program around its data, i. e. , objects and a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling access to code.
4.
What are Class, Constructor and Primitive data types?
Answer: Class is a template for multiple objects with similar features and it is a blue print for objects. It defines a type of object according to the data the object can hold and the operations the object can perform. Constructor is a special kind of method that determines how an object is initialized when created. Primitive data types are 8 types and they are: byte, short, int, long, float, double, boolean, char.
5.
What is the most important feature of Java?
Answer: Java is a platform independent language.
Content preview
Dt/a/o9/28 UNLT:
Tntzoducton lo Java
îhtrco to Progmg
’ >Compater is a digtal drvce it can only undesstornd
bincucydata ienD81.
’ Tt is too diffaul! fox a noTmtal programmesto Leen
&waik the lauguxge inpå
~ Hence,the Camputex longuage is clg_ ortied,into 2lag
() Machine level langunge.
() Assenbly language
(n) High leyel language
Machine level Jngunges (ow level lengua) ()
The poogrom written ir this lang cce in bincry clatr
6Tt does not 9eqyit a torontla ti toconveot a psogon
beor the comp-diectly urder snd the MLL.
Asenbly Lenguaçcs
"It rcepoesont a Set of instructors fn a symbolic &
humcn undesstoue le forn:
Ituses in,
SenblerC to conveot cssembly to machine lcnguoe
High Level tongucige:(LL)
H degned for Heelopho t usto foienidly softoo
oIt requi'se a chrmpileg & inteoeter fo tonsbte the
poogoon tnto mtchine languige
, I991 Oek
1qq4 dcb bowsey cotled HoT ava Jcivg to loctte & ri
ttppet pog ottrns on Trtenet
iqq5 ak enctmed ts fowq:
|q96 Sun celexs ed idk L0
[qgg Sun elensed dawa2 with vesion 1-2 of solt
development kit
14qq -’ Sun neleases Javaa platfoom-sandand editi
(Ts¬) &Java Qpltfom enteapaise editon (E
Q000’JASE with SOK L3
Q002 JOSE with SDK 14
JOSE ith JDK 50 ie J2SE 50
Q009 Ohwcueds Ooccle as tken over the Sun Meosle
DIRPerent Versionsof JAVA:
e JDK Alpha and Beta (1945» Tava SELR (Mare 201)
’ Jave SEG(Sep, 2oI4)
’JDK 1 (qth bs 1447) ’Jua SEI4 Me, 2020)
1443) |Jtut se5 (Sep, 2020)
5 JASE l2 (8th Dec,
a000)
o’ JaSE |·3 (gth Nay, ’Jewc SEIS (Ma, 202)
eb a002)
’ JOSE ("4 (6th Jeua sEIF (Sep, 2021)
Sep 2004)
’ JQSE 5-0 (30th
( t Dec, Q006) Jaua S I8 (to be elersec
’ Jave SEG
Julys Q011) by March 2022)
’ Jawt SET C2sth
’ Jwt SER (Igth Mucch Q014)
’ Jewa SEq (2lst Sep: Q0)
Java Se1o (20t Mc, 2018)
’ Ju SEI (Sep 2018)
,DThe HHLL tncludes python, Jrut, JaVSCHjpt,
ptp
Dsciptin of Compilez crd Iitea p~tters
OCompileXt ist computeo poogsun vvhich is writh o
t
in HLL into MLL:
o Tt tocnslcute thewhole baogrcm ct a trne,"!
o t rcequies m08e meun memofy
The exeutn. time is less
1f cosoÝ is deteched noting is exeudedd.
Inttoprete xg
n inte opscles is t Compue program which conyert
je tntsucns c
line byline cnd is witten in HLL to ML
Tbeexe ution time fs more.
o Tfe08i% detcted st stops there tndit do es co
he next ne without reernoving he eon fom the
CUTSet ine
oIt ceq uses less min memory N
& Whtt do you metn by 00P.? Sttethe key faies
of 0OPs with its cdvantoge ?
ÖÖP an appaoch tht povides wety of rudue
rciting p0gecms by Cocctng Puttr tbenj3mday
cocec Tox both data func that Can be used cs ferple
fos coerting e opsof such moduleson demnd
, The vcrcious key fecteroes of O coee as follo.
biet t-e ebject 6oien object-obicoted
oJ4 is a bsic
bersie rntime entty ín «
cysBem
knonin
An en tity hscn stote & behouiour bt.
object
such ts peh is cn objet be oc t has çtater
o ex:- woitting
ike alour ncune & behawiove is
object ceun be defin ed as tn instonce cacloos
e An
" Ts a blue print foom which it can ceate indiids
objects.
" T5e ollect'on of object is Co lled clss
"It isa logicad entty
Ehheaitunce:
properties beha
Ohen ore object acquirces t the inhevitonce.
veuK cfof pucent object iscalled
provide cde reusabrlty &iti's used to ccheive cun
I¾
tme polymosphism h
Folymoxphismg
4 mens the dbility to take more thon one Fu
’în Jau we tuse methodovetoading nee
ovestwittng to celeive poly morphim.
Hrding the intemal detoi ds &stoing ts
nctionaltykkrown sabstattn.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller arpitasahoo. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.79. You're not tied to anything after your purchase.