java progamming syllabus r13 jntuh
TRANSCRIPT
-
8/9/2019 Java Progamming Syllabus R13 JNTUH
1/4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
II Year B.Tech. CSE-II Sem L T/P/D C
4 -/-/- 4
A4!"!#$ JAVA PROGRA%%INGO&'ec()*e+,
To understand object oriented concepts, and apply them in problem solving.
To learn the basics of java Console and GUI based programming.
UNIT I ,
OOP Cce(+: - ata abstraction, encapsulation, inheritance, benefits of inheritance,polymorphism, classes and objects, !rocedural and object oriented programming paradigms.
Ja*a r0ramm)0 - "istory of #ava, comments, data types, variables, constants, scope and life
time of variables, operators, operator hierarchy, e$pressions, , type conversion and casting,enumerated types, control flo% & bloc' scope, conditional statements, loops, brea' and continue
statements, simple java stand alone programs, arrays, console input and output, formatting
output, constructors, methods, , parameter passing, static fields and methods, access control, thisreference, overloading methods and constructors, recursion, , garbage collection, building
strings,, e$ploring string class
UNIT II ,
Iher)(ace & Inheritance hierarchies, super and sub classes, (ember access rules, super
'ey%ord, preventing inheritance: final classes and methods, the )bject class and its methods.
P12mrh)+m- dynamic binding, method overriding, abstract classes and methods.I(er3ace+ Interfaces vs *bstract classes, defining an interface, implementing interfaces,
accessing implementation through interface references, e$tending interface.
Ier c1a++e+-Uses of inner classes, local inner classes, anonymous inner classes, static inner
classes, e$amples.
Pac5a0e+-efining, Creating and *ccessing a !ac'age, Understanding C+*!*T", importing
pac'ages.
UNIT III ,
E6ce() ha71)0& ealing %ith errors, benefits of e$ception handling, the classification ofe$ceptions- e$ception hierarchy, chec'ed e$ceptions and unchec'ed e$ceptions, usage of try,catch, thro%, thro%s and finally, re thro%ing e$ceptions, e$ception specification,built in
e$ceptions, creating o%n e$ception sub classes.
%81()(hrea7)0- ifferences bet%een multiple processes and multiple threads, thread states,
creating threads, interrupting threads, thread priorities, synchroniing threads, inter-threadcommunication, producer consumer pattern.
-
8/9/2019 Java Progamming Syllabus R13 JNTUH
2/4
UNIT IV ,
C11ec() 9rame:r5 I Ja*a- Introduction to #ava Collections, )vervie% of #ava Collectionframe %or', Generics, Commonly used Collection classes- *rray +ist, ector, "ash table, tac',
/numeration, Iterator, tring To'enier, 0andom, canner, calendar and !roperties.
9)1e+-treams-byte streams, character streams, te$t input1output, binary input1output, randomaccess file operations, 2ile management using 2ile class.
Cec()0 ( Da(a&a+e- #3C Type 4 to 5 drivers, connecting to a database, 6uerying a
database and processing the results, updating data %ith #3C.
UNIT V
GUI Pr0ramm)0 :)(h Ja*a - The *7T class hierarchy, Introduction to %ing, %ing vs*7T, "ierarchy for %ing components, Containers & #frame, #*pplet, #ialog, #!anel.
)vervie% of some %ing components & #button, #+abel, #Te$2ield, #Te$t*rea, simple s%ing
applications, +ayout management - +ayout manager types & border, grid and flo%.
A1e(+ & Inheritance hierarchy for applets, differences bet%een applets and applications, life
cycle of an applet, passing parameters to applets, applet security issues.
TE;T BOO
-
8/9/2019 Java Progamming Syllabus R13 JNTUH
3/4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
II Year B.Tech. CSE-II Sem L T/P/D C
- -/#/- >
A4!"?"$ JAVA PROGRA%%ING LABO&'ec()*e+,
To introduce java compiler and eclipse platform.
To impart hand on e$perience %ith java programming.
;ote:Use +inu$ and (y
-
8/9/2019 Java Progamming Syllabus R13 JNTUH
4/4
appropriate message %ith DtopE or D0eadyE or DGoE should appear above the buttons in
selected color. Initially there is no message sho%n.
. 7rite a java program to create an abstract class named hape that contains t%o integers
and an empty method named print*rea89. !rovide three classes named 0ectangle,
Triangle and Circle such that each one of the classes e$tends the class hape. /ach one ofthe classes contains only the method print*rea89 that prints the area of the given shape.
J. uppose that a table named Table.t$t is stored in a te$t file. The first line in the file is theheader, and the remaining lines correspond to ro%s in the table. The elements are
separated by commas. 7rite a java program to display the table using +abels in Grid
+ayout.
4=. 7rite a #ava program that handles all mouse events and sho%s the event name at the
center of the %indo% %hen a mouse event is fired 8Use *dapter classes9.
44. 7rite a #ava program that loads names and phone numbers from a te$t file %here the datais organied as one line per record and each field in a record are separated by a tab 8Kt9. It
ta'es a name or phone number as input and prints the corresponding other value from thehash table 8hint: use hash tables9.
4B. Implement the above program %ith database instead of a te$t file.
4. 7rite a #ava program that ta'es tab separated data 8one record per line9 from a te$t file
and inserts them into a database.
45. 7rite a #ava program that prints the meta-data of a given table.
TE;T BOO