It Java

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

JAVA PROGRAMMING (CS405PC)

COURSE PLANNER

I. COURSE OVERVIEW:

Java is the most popular platform, which is used to develop several applications for the systems as well as
embedded devices like mobile, laptops, tablets and many more. It is an object oriented programming
language and has a simple object model, as it has derived from C and C++. It provides a virtual machine,
which is accumulated with byte-code and can run on any system. With time the importance and popularity
of Java is on rise as it has the magic in its remarkable abilities to innovate and morph as the technology
landscape changes. It is the language of choice for developing applications for the BlackBerry Smartphone.
It is important for information technology industry to develop and create multiple web-based or server based
applications to enhance the industrial competency. There is huge scope for this programming language.

II. PREREQUISITE(S):
The knowledge of following subjects is essential to understand the subject:
1. Computer Programming
2. Data Structures

III. COURSE OBJECTIVES:

S. No. Course Objectives


I. At the end of the course, the students will be able to:
I. To introduce the object oriented programming concepts.
To understand object oriented programming concepts, and apply them in solving
II.
Problems.
To introduce the principles of inheritance and polymorphism; and demonstrate how
III.
they relate to the design of abstract classes
IV. To introduce the implementation of packages and interfaces
V. To introduce the concepts of exception handling and multithreading.
VI. To introduce the concepts of Collection Framework.
VII. To introduce the design of Graphical User Interface using applets and swing controls.
IV. COURSE OUTCOMES:

S. No. Course Outcomes (CO)


After completing this course the student must demonstrate the knowledge and ability to:
CO1 Able to understand the use of OOPs concepts.

CO2 Able to solve real world problems using OOP techniques.

CO3 Able to understand the use of abstraction.

CO4 Able to understand the use of Packages and Interface in java.

CO5 Able to develop and understand exception handling, multithreaded applications

II YEAR II SEM CSE Page 102


with synchronization.

CO6 Able to understand the use of Collection Framework.

V. HOW PROGRAM OUTCOMES ARE ASSESSED:

Proficiency
Program Outcomes (PO) Level
assessed by
PO1 Engineering knowledge: Apply the knowledge of
mathematics, science, engineering fundamentals, and an Assignments,Tutoria
3
engineering specialization to the solution of complex ls, Mock Tests
engineering problems.
PO2 Problem analysis: Identify, formulate, review research
literature, and analyze complex engineering problems reaching Assignments,Tutoria
3
substantiated conclusions using first principles of mathematics, ls, Mock Tests
natural sciences, and engineering sciences.
PO3 Design/development of solutions: Design solutions for
complex engineering problems and design system components
Assignments,Tutoria
or processes that meet the specified needs with appropriate 3
ls, Mock Tests
consideration for the public health and safety, and the cultural,
societal, and environmental considerations.
PO4 Conduct investigations of complex problems: Use research-
based knowledge and research methods including design of
-
experiments, analysis and interpretation of data, and synthesis
of the information to provide valid conclusions.
PO5 Modern tool usage: Create, select, and apply appropriate
techniques, resources, and modern engineering and IT tools
-
including prediction and modeling to complex engineering
activities with an understanding of the limitations.
PO6 The engineer and society: Apply reasoning informed by the
contextual knowledge to assess societal, health, safety, legal Assignments,Tutoria
3
and cultural issues and the consequent responsibilities relevant ls, Mock Tests --
to the professional engineering practice.
PO7 Environment and sustainability: Understand the impact of
the professional engineering solutions in societal and Assignments,Tutoria
2
environmental contexts, and demonstrate the knowledge of, ls,
and need for sustainable development.
PO8 Ethics: Apply ethical principles and commit to professional
ethics and responsibilities and norms of the engineering 1 Assignments
practice.
PO9 Individual and team work: Function effectively as an
individual, and as a member or leader in diverse teams, and in - --
multidisciplinary settings.
PO10 Communication: Communicate effectively on complex
engineering activities with the engineering community and
with society at large, such as, being able to comprehend and - --
write effective reports and design documentation, make
effective presentations, and give and receive clear instructions.

II YEAR II SEM CSE Page 103


Proficiency
Program Outcomes (PO) Level
assessed by
PO11 Project management and finance: Demonstrate knowledge
- --
and understanding of the engineering and management

II YEAR II SEM CSE Page 104


Proficiency
Program Outcomes (PO) Level
assessed by
principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multidisciplinary
environments.
PO12 Life-long learning: Recognize the need for, and have the
Assignments,Tutoria
preparation and ability to engage in independent and life-long 2
ls
learning in the broadest context of technological change.

1: Slight (Low) 2: Moderate (Medium) 3: Substantial (High) - : None

VI. HOW PROGRAM SPECIFIC OUTCOMES ARE ASSESSED:

Proficiency
Program Specific Outcomes (PSO) Level
assessed by

PSO1 Software Development and Research Ability: Ability to


understand the structure and development methodologies of Lectures,
software systems. Possess professional skills and knowledge of
3 Assignments,Tutori
software design process. Familiarity and practical competence
with a broad range of programming language and open source als, Mock Tests
platforms. Use knowledge in various domains to identify research
gaps and hence to provide solution to new ideas and innovations.
PSO2 Foundation of mathematical concepts: Ability to apply the
acquired knowledge of basic skills, principles of computing, Lectures,
mathematical foundations, algorithmic principles, modeling and 3 Assignments,Tutori
design of computer- based systems in solving real world als, Mock Tests
engineering Problems.

PSO3 Successful Career: Ability to update knowledge continuously in


the tools like Rational Rose, MATLAB, Argo UML, R Language
Lectures,
and technologies like Storage, Computing, Communication to 2
Assignments
meet the industry requirements in creating innovative career paths
for immediate employment and for higher studies.

1: Slight (Low) 2: Moderate (Medium) 3: Substantial (High) - : None

VII. SYLLABUS:
UNIT – I
Object-oriented thinking- A way of viewing world – Agents and Communities, messages and methods,
Responsibilities, Classes and Instances, Class Hierarchies- Inheritance, Method binding, Overriding and
Exceptions, Summary of Object-Oriented concepts. Java buzzwords, An Overview of Java, Data types,
Variables and Arrays, operators, expressions, control Statements, Introducing classes, Methods and Classes,
String handling.

II YEAR II SEM CSE Page 104


Inheritance– Inheritance concept, Inheritance basics, Member access, Constructors, Creating Multilevel
hierarchy, super uses, using final with inheritance, Polymorphism-ad hoc Polymorphism, pure
polymorphism, method overriding, abstract classes, Object class, forms of inheritance- specialization,
specification, construction, extension, limitation, combination,
benefits of inheritance, costs of inheritance.

UNIT II
Packages- Defining a Package, CLASSPATH, Access protection, importing packages. Interfaces- defining
an interface, implementing interfaces, Nested interfaces, applying interfaces, variables in interfaces and
extending interfaces.
Stream based I/O(java.io) – The Stream classes-Byte streams and Character streams, Reading console
Input and Writing Console Output, File class, Reading and writing Files,
Random access file operations, The Console class, Serialization, Enumerations, auto boxing,generics.

UNIT – III
Exception handling - Fundamentals of exception handling, Exception types, Termination or resumptive
models, Uncaught exceptions, using try and catch, multiple catch clauses, nested try statements, throw,
throws and finally, built- in exceptions, creating own exception sub classes.
Multithreading- Differences between thread-based multitasking and process-based multitasking, Java
thread model, creating threads, thread priorities, synchronizing threads, inter thread communication.

UNIT -IV
The Collections Framework (java.util)- Collections overview, Collection Interfaces, The Collection
classes- Array List, Linked List, Hash Set, Tree Set, Priority Queue, Array Deque. Accessing a Collection
via an Iterator, Using an Iterator, The For-Each alternative, Map Interfaces and Classes, Comparators,
Collection algorithms, Arrays, The Legacy Classes and Interfaces- Dictionary, Hashtable ,Properties, Stack,
Vector More Utility classes, String Tokenizer, Bit Set, Date, Calendar, Random, Formatter, Scanner

UNIT – V
GUI Programming with Swing – Introduction, limitations of AWT, MVC architecture, components,
containers. Understanding Layout Managers, Flow Layout, Border Layout, Grid Layout, Card Layout, Grid
Bag Layout.
Event Handling- The Delegation event model- Events, Event sources, Event Listeners,Event classes,
Handling mouse and keyboard events, Adapter classes, Inner classes,Anonymous Inner classes.
A Simple Swing Application, Applets – Applets and HTML, Security Issues, Applets and Applications,
passing parameters to applets. Creating a Swing Applet, Painting in Swing, A Paint example, Exploring
Swing Controls- JLabel and Image Icon, JText Field, The Swing Buttons- JButton, JToggle Button, JCheck
Box, JRadio Button, JTabbed Pane, JScroll Pane,
JList, JCombo Box, Swing Menus, Dialogs.

SUGGESTED BOOKS:

TEXT BOOKS:
1. Java The complete reference, 9th edition, Herbert Schildt, McGraw Hill Education
(India) Pvt. Ltd
2. Understanding Object-Oriented Programming with Java, updated edition, T. Budd,
Pearson Education

REFERENCE BOOKS:
1. An Introduction to programming and OO design using Java, J. Nino and F.A. Hosch,

II YEAR II SEM CSE Page 105


John Wiley & sons.
2. Introduction to Java programming, Y. Daniel Liang, Pearson Education.
3. Object Oriented Programming through Java, P. Radha Krishna, Universities Press.
4. Programming in Java, S. Malhotra, S. Chudhary, 2nd edition, Oxford Univ. Press.
5. Java Programming and Object oriented Application Development, R. A. Johnson,
Cengage Learning.
NPTEL Web Course: http://nptel.ac.in/courses/106106147/3

NPTEL Video Course: http://www.nptelvideos.com/java/java_video_lectures_tutorials.php


GATE SYLLABUS: NOT APPLICABLE

IES SYLLABUS: NOT APPLICABLE

VIII. COURSE PLAN:


Lecture No.

Reference
Unit No.

Topics to be Teaching
Link for PPT Link for PDF Course learning outcomes
covered Methodology

https://drive.goo https://drive.goog
A way of gle.com/file/d/1I le.com/file/d/1ly8
viewing world 7vmZo_dgdVyb 4NlJmPRPBQKL
1 Know about JAVA T1
– Agents and gS7jqK2l_Ko_A 98mSCpumIuSsb
Communities, Kv456d/view?us betl/view?usp=sh
p=sharing aring
https://drive.goo
https://drive.goog
Messages and gle.com/file/d/1v
le.com/file/d/1ly8
methods, U9JGSN1xJOFf
4NlJmPRPBQKL
2 Responsibiliti ILZSU3ArThhg Know about Agents and Communities T1
98mSCpumIuSsb
es, Classes Ad-
betl/view?usp=sh
and Instances q8AO/view?usp
aring
=sharing
https://drive.goo https://drive.goog
Class gle.com/file/d/1n le.com/file/d/1Q
Hierarchies- s7j8IQj24zE0jT WmUaY8U4Uk Gathering Knowledge About Messages
3 T1
Inheritance, GhpynR9qZVxh QWkjdBlia72Thu methods Responsibilitie
Method 7qpx8/view?usp qq95JR_/view?us
CHALK
=sharing p=sharing
BOARD ,PPT
1 binding,
PRESENTAI
Overriding https://drive.goo https://drive.goog
ON
and gle.com/file/d/1- le.com/file/d/1Q
Exceptions, AkkB4D2ZLpex WmUaY8U4Uk Understanding the Class Hierarchies
4 T1
Summary of FGI5ncwJI0Vk4 QWkjdBlia72Thu and Object-Oriented concepts
Object- nz2GSI/view?us qq95JR_/view?us
Oriented p=sharing p=sharing
concepts
https://drive.goog
le.com/file/d/1r5j
Java
RRtUZRKaZLK8
buzzwords,
https://drive.goo 9Bsew0m4hfcniF
An Overview
gle.com/file/d/14 Tx2/view?usp=sh
of Java, Data Know about Java buzzwords, Overview
LCDEWjzuHD7 aring ,
5 types, of Java, Variables and Arrays, T1
rSv5PBdsNCabI https://drive.goog
Variables and operators, expressions
hEG_LvE/view? le.com/file/d/1Tf
Arrays,
usp=sharing hDZ2h8KN6BJN
operators,
Uhx-
expressions
WrqMR6PHlai2
O2/view?usp=sha

II YEAR II SEM CSE Page 106


ring
https://drive.goog
le.com/file/d/1zu
gidqvI3iMpmOh
qIZF5swzcPZaRf
9mL/view?usp=s
haring
https://drive.goog
le.com/file/d/1_c
RHxKIrdJ8nEQJ
dPkl-Zki_KRRx-
WqA/view?usp=s
haring
https://drive.goog
le.com/file/d/1Y_
EKWS94A5Kol
DNLAr2srlCmb
HiCmSQF/view?
usp=sharing
https://drive.goog
le.com/file/d/1v_
vto_aafEFxtRY4
Control
https://drive.goo TpllgVjUaC_9N
Statements,
gle.com/file/d/1 O0N/view?usp=s
Introducing
Dt- haring
classes, Know about Control Statements,
6 nMFkoXZ6e8QJ https://drive.goog T1
Methods and Methods, Classes, String handling
CHRqLuvnwVq le.com/file/d/1zQ
Classes,
WGvfKS/view? 0Ol-
String
usp=sharing cHQI9PjylBGZD
handling
SrxZoTMkgY1p8
/view?usp=sharin
g
https://drive.goog
le.com/file/d/1p9
mmz7n3OoQHy
OQv4OGvxVHU
XLc00Od6/view?
usp=sharing
https://drive.goog
le.com/file/d/1JG
eloKhiSsb16Kzh
8lEcJKeBE-
62WzsX/view?us
p=sharing
https://drive.goog
Inheritance– https://drive.goo
le.com/file/d/13vj
Inheritance gle.com/file/d/11
_furY_xU4puDw
concept, H3Yueaa46okV
- Compose the Knowledge of the
7 Inheritance uXh- T1
RBjKbWhYJI4O Followings:
basics, EcQTvUGwi_q
9UN/view?usp=s
Member S9Ja/view?usp=
haring
access sharing
https://drive.goog
le.com/file/d/1W
Lg5Ovl5YEcLxz
wEXfjdkQ4oduH
F-
LU2/view?usp=s
haring

II YEAR II SEM CSE Page 107


https://drive.goog
le.com/file/d/1hje
6gUBD-
_n10jnUw2Zhnc
V0WTYtK1Ql/vi
Constructors, ew?usp=sharing
Creating https://drive.goo https://drive.goog
Multilevel gle.com/file/d/18 le.com/file/d/1CE
hierarchy, zAQDjJEmIMRi WF8t3slBDAIF1
8 (a) Inheritance concept T1
super uses, H8xjbTdl0wD9 XySftSb5CIjMtb
using final mKs1JwQ/view 9YA/view?usp=s
with ?usp=sharing haring
inheritance https://drive.goog
le.com/file/d/166
YLPBzPXkHopy
MePS7ANWsuR
LAq4WFR/view?
usp=sharing
https://drive.goog
le.com/file/d/1O_
6H_7u1Iqzl8e9Ib
Polymorphis -5vaODvOYP-
https://drive.goo
m-ad hoc yVhP/view?usp=
gle.com/file/d/1
Polymorphis sharing
XqcBYuA5syG
9 m, pure https://drive.goog (b) Member access T1
2yXEb_7SIeJqt
polymorphism le.com/file/d/1hT
W7NEcKCU/vie
, method uojmmxlVvnwL
w?usp=sharing
overriding KSgR4KQaHhbP
-
ElFHD/view?usp
=sharing
abstract
https://drive.goo https://drive.goog
classes,
gle.com/file/d/1 le.com/file/d/1Lo
Object class,
MNu6S8eioTp5 xsbIIS2M8VxpJT
10 forms of (c) Constructors T1
w2VXbm5aokr3 UpRzYjEcx_61nI
inheritance-
1DzHH2vZ/vie yS/view?usp=sha
specialization,
w?usp=sharing ring
specification
https://drive.goo https://drive.goog
construction, gle.com/file/d/1k le.com/file/d/166
extension, 4DF7BpFwHt9J YLPBzPXkHopy
11 T1
limitation, v5WJic74mW9y MePS7ANWsuR
combination, ct7hVsL/view?u LAq4WFR/view?
sp=sharing usp=sharing
(d) Creating Multilevel hierarchy, super
https://drive.goog
https://drive.goo uses, using final with inheritance
le.com/file/d/19
Benefits of gle.com/file/d/1t
WqqZExEJfAm
inheritance, T5j5UZuSDrgaa
12 WWCM0tqkgcGI T1
costs of QoHT3ZMKrDp
WQvT-
inheritance. rmgZs0T/view?
wv_/view?usp=sh
usp=sharing
aring

13 Mock Test – I

14 Revision

https://drive.goo https://drive.goog
Packages- gle.com/file/d/11 le.com/file/d/1TB
CHALK
Defining a EuuazFi6Vqe33 cQclp-
Gathering Knowledge about Packages BOARD ,PPT T1,T
15 2 Package, BUq9XNNAshd rIwfhpAYml2R
and Interfaces. PRESENTAI 2
CLASSPATH eoJmK- WLK_8aEZhTU
ON
, v/view?usp=shar T/view?usp=shari
ing ng

II YEAR II SEM CSE Page 108


https://drive.goog
le.com/file/d/1F1
EzceDwRbLK3u
https://drive.goo
aILcrokjepB_g2a
Access gle.com/file/d/1r
RXy/view?usp=s
protection, uYCYLTMZZin Gathering Knowledge about Packages T1,T
16 haringhttps://driv
importing eJBcLiqYzZR- and Interfaces. 2
e.google.com/file
packages mx7kRFHe/vie
/d/1GX9QYTJkc
w?usp=sharing
Rgoj2WF2UdoQl
oCLZ44Egto/vie
w?usp=sharing
https://drive.goog
le.com/file/d/1k
WNGObznwuPw
https://drive.goo Fnucjc5oLvA4jn
Interfaces-
gle.com/file/d/1z e88YNP/view?us
defining an
NBHGDuTIyvR p=sharing Gathering Knowledge about Packages T1,T
17 interface,
5p32V7UF4vzct https://drive.goog and Interfaces. 2
implementing
XzNgIAW/view le.com/file/d/11b
interfaces,
?usp=sharing Og8aLleP3j81tcP
7yWtUlxBtzUvx
os/view?usp=shar
ing
https://drive.goo https://drive.goog
gle.com/file/d/1 le.com/file/d/1SH
H3z0a7Xp- y7bdPquLsXXY Know about applying
Nested T1,T
18 7QXZ8VYqMen K- interfaces,variables in interfaces &
interfaces 2
x2OTWbPkjSiZ/ gnz1iI1jShbiN_ extending interfaces
view?usp=sharin WF/view?usp=sh
g aring
Applying https://drive.goo https://drive.goog
interfaces, gle.com/file/d/18 le.com/file/d/14P
variables in N9zBm2blqCCp gtIU6wSbNdfA7 Compose the Knowledge of the T1,T
19
interfaces and Zr1Dh4hs8af7ri 9gkyI_eY37p2zet Followings: 2
extending n7QWw/view?u qR/view?usp=sha
interfaces sp=sharing ring
https://drive.goog
le.com/file/d/1SN
gY01fYtzxTe6TP
8zoOOTIPNY-
i_fpf/view?usp=s
haring
Stream based
https://drive.goo https://drive.goog
I/O(java.io) –
gle.com/file/d/15 le.com/file/d/1Ze
The Stream
3uIfaq_bGMIsg uWiXMa8MA4H T1,T
20 classes-Byte a) Stream classes
4ipVXz1YjlCeC LFmAKD4n733J 2
streams and
D2C5D/view?us DPggNtF/view?u
Character
p=sharing sp=sharing
streams
https://drive.goog
le.com/file/d/1Ui
CBoSj67SocjAQ
dxa43lP4G7S5_c
bgh/view?usp=sh
aring
https://drive.goo
https://drive.goog
Reading gle.com/file/d/19
le.com/file/d/1ul2
console Input 2xk0OlTZYqN
96KXDmAigffD b) Reading console Input and Writing T1,T
21 and Writing KV-
7o1RET2ev4X98 Console Output 2
Console aO1yytbYGVU
pR65/view?usp=s
Output, BtowXU/view?u
haring
sp=sharing
https://drive.goo https://drive.goog
gle.com/file/d/1h le.com/file/d/1SN
File class,
fJUIr- gY01fYtzxTe6TP T1,T
22 Reading and c) File class
sS9kRlG44TYJq 8zoOOTIPNY- 2
writing Files
I0KhH0l2qsrs/vi i_fpf/view?usp=s
ew?usp=sharing haring

II YEAR II SEM CSE Page 109


https://drive.goog
le.com/file/d/1Ze
uWiXMa8MA4H
LFmAKD4n733J
DPggNtF/view?u
sp=sharing
https://drive.goog
le.com/file/d/1Ui
CBoSj67SocjAQ
dxa43lP4G7S5_c
bgh/view?usp=sh
aring
https://drive.goo https://drive.goog
gle.com/file/d/13 le.com/file/d/1aIj
Random
wxF4BUcznBG QYmJgHuEPn7p T1,T
23 access file d)Random Access
dmHhVxTxp5W PKWJsRLmzz8e 2
operations
ffswPjW8D/vie 7h7M0/view?usp
w?usp=sharing =sharing
https://drive.goog
le.com/file/d/1SN
gY01fYtzxTe6TP
8zoOOTIPNY-
i_fpf/view?usp=s
haring
The Console https://drive.goo https://drive.goog
class, gle.com/file/d/1z le.com/file/d/1Ze
Serialization, L_wO4doVyHS uWiXMa8MA4H T1,T
24 Serialization, Enumerations
Enumerations, pwhi1TJx96Yg LFmAKD4n733J 2
auto boxing, wSxjXjv1/view? DPggNtF/view?u
generics. usp=sharing sp=sharing
https://drive.goog
le.com/file/d/1Ui
CBoSj67SocjAQ
dxa43lP4G7S5_c
bgh/view?usp=sh
aring
Exception
handling -
https://drive.goo https://drive.goog
Fundamentals
gle.com/file/d/10 le.com/file/d/1Vf
of exception
luBvz43tCfYy_ LtLKJMqo2aAtV T1,T
25 handling, ,
8IqVjJBURhyfv g2W4VtNy4FGV 2
Termination
8gVjP/view?usp 2p16o/view?usp=
or
=sharing sharing
presumptive
models

https://drive.goog
Compose the Knowledge of the
le.com/file/d/1FZ
Followings:a) Exception handling
CNwPyEpr810X
Uncaught https://drive.goo ZaL-
CHALK
exceptions, gle.com/file/d/1p yAlA4hkvUhjJfS
BOARD ,PPT
3 using try and 7CkIQgWpCeP /view?usp=sharin T1,T
26 PRESENTAIO
catch, NF8IfBBvztbN8 g 2
N
multiple catch ncfjUZo/view?u https://drive.goog
clauses sp=sharing le.com/file/d/1_0
AkqaBGJHBOVf
1pHtN0OkJc-
u7f2NvP/view?us
p=sharing
https://drive.goog
https://drive.goo le.com/file/d/1cX
Nested try gle.com/file/d/1 R4zy2b1Tcna6Td
statements, QgyqkseMya5zu pJH33of6swEt1T T1,T
27 b) built- in exceptions
throw, throws Dib8cpZwhW3i RQ/view?usp=sh 2
and finally wO4vCUO/view aring
?usp=sharing https://drive.goog
le.com/file/d/1SK

II YEAR II SEM CSE Page 110


Y84PkOdCaDEY
wcAe5JH3g9yU
ZBYF3R/view?u
sp=sharing

https://drive.goo https://drive.goog
gle.com/file/d/1v le.com/file/d/1Al
built- in 94OQTGyaZrN- bAaYyneEgGh9
28
exceptions _0RccOdQqeQi M9NQclYMN-
Haqm4wd/view? cOGHADAm/vie
usp=sharing w?usp=sharing

I Mid Examinations

https://drive.goog
https://drive.goo
le.com/file/d/1PkI
gle.com/file/d/1
Creating own CqTworr6bbHna
CkVHk_A3suXl Gather knowledge aboutCreating own T1,T
29 exception sub bT_-
rty1vmkXfPZaV exception sub classes 2
classes. KxHzWc6aqiLU/
FcpSyIT/view?u
view?usp=sharin
sp=sharing
g
Multithreadi
ng-
https://drive.goo https://drive.goog
Differences
gle.com/file/d/1 le.com/file/d/1C0
between
L_7n6GDWAK- AsJtQKaZfYhlna Gather knowledge about Creating own T1,T
30 thread-based
Xaeu26txMpsEy fqPN1ZgQNR_N exception sub classes 2
multitasking
FvS930YV/view DxXS/view?usp=
and process-
?usp=sharing sharing
based
multitasking
https://drive.goog
le.com/file/d/1RA
yax7cE54P4vHw
D78g3nQmO2Ay
d_0Z1/view?usp=
sharing
https://drive.goo
https://drive.goog
Java thread gle.com/file/d/1
le.com/file/d/1C0
model, SrHEF6-
AsJtQKaZfYhlna Gathering Knowledge about CHALK T1,T
31 creating dR759pDAhdT
fqPN1ZgQNR_N Multithreading BOARD ,PPT 2
threads,thread Np6M5hiPYVX
DxXS/view?usp= PRESENTAIO
priorities V23/view?usp=s
sharing N
haring
https://drive.goog
le.com/file/d/1G-
Absj7cbE0WXiG
vDi2zxbC4hliLL
qsw/view?usp=sh
aring
https://drive.goo https://drive.goog
gle.com/file/d/1k le.com/file/d/1n5
Know about Java thread model, thread
synchronizing dtbMPry1SprED Ab2H0wRwuIm T1,T
32 priorities, synchronizing threads, inter
threads, u47cHmwuEeN Lg_KP2MhW4G 2
thread communication
6Bt71Sv/view?u IrN8E9jg/view?u
sp=sharing sp=sharing
https://drive.goo https://drive.goog
gle.com/file/d/18 le.com/file/d/1DT
inter thread
7V6dekUapM2L S5kyg9nq865Km T1,T
33 communicatio Know about synchronizing threads,
Jp9z33Jr4u- 4yYN-Mf- 2
n
ThQZWrVE/vie DNuXKNfMk/vi
w?usp=sharing ew?usp=sharing
https://drive.goo https://drive.goog
gle.com/file/d/18 le.com/file/d/1DT
inter thread
7V6dekUapM2L S5kyg9nq865Km Know about inter thread T1,T
34 communicatio
Jp9z33Jr4u- 4yYN-Mf- communication 2
n
ThQZWrVE/vie DNuXKNfMk/vi
w?usp=sharing ew?usp=sharing

II YEAR II SEM CSE Page 111


Know about inter thread T1,T
35 revision
communication 2

36 Tutorials

The https://drive.goo
Collections gle.com/file/d/1p https://drive.goog
Framework e- le.com/file/d/1uR
(java.util)- RBHJFH6g2bN db5mmFbZqVep Gathering Knowledge about T1,T
37
Collections LDtaqYpNqlDx ezbl8E4Cif7eZZ Collections Framework (java.util)- 2
overview, O_Y- B7cl/view?usp=s
Collection iy/view?usp=sha haring
Interfaces ring
https://drive.goog
le.com/file/d/1Bd
pBhbrPLgmtV9A
U-
pFJtjhkJFpdtTJm
/view?usp=sharin
g
https://drive.goo https://drive.goog
The
gle.com/file/d/1q le.com/file/d/1vT
Collection
QoXbWDSPKv _74Nmg9rE1qD Gathering Knowledge about T1,T
38 classes- Array
6dOKCpTFlNn YLGk_cCHglP1 Collections Framework (java.util)- 2
List, Linked
HaF02XqD0I/vi W2_h0z/view?us
List, Hash Set
ew?usp=sharing p=sharing
https://drive.goog
le.com/file/d/1LH
I6G2djApYQ_8p
coaX-
ZgqlhVanAdDy/
view?usp=sharin CHALK
g BOARD ,PPT
https://drive.goog PRESENTAIO
le.com/file/d/1A N
4
AagCsqepK4mJT
q8HWnT6d_1x5
dVwWk9/view?u
sp=sharing
https://drive.goo
https://drive.goog
gle.com/file/d/1
Tree Set, le.com/file/d/1ka
MkeawrJ8qAsh
Priority AhKKhKdXB0rS Gathering Knowledge about T1,T
39 NmQOam_8CIf
Queue, Array 4HcDzMI7Gamj Collections Framework (java.util)- 2
bEaP-
Deque. RMWXkr/view?u
6WEd/view?usp
sp=sharing
=sharing
https://drive.goog
le.com/file/d/1O
OkbH-
xI81NHqTC1S_j
zEz6vFF0y4Iu6/v
iew?usp=sharing
https://drive.goog
Accessing a le.com/file/d/1fo-
Collection via AkixnaNaNCRIg
Gathering Knowledge about T1,T
40 an Iterator, -
https://drive.goo Collections Framework (java.util)- 2
Using an J2cevNDCUGu_
gle.com/file/d/1f
Iterator K71/view?usp=sh
nlEhxA-
aring
_D5FyKoIkAkG
https://drive.goog
26NB667Q_eCl/
le.com/file/d/1aE
The For-Each view?usp=sharin
esJbLANED_5P
alternative, g Compose the Knowledge of the T1,T
41 KHj_hWhQ7IiYk
MapInterfaces Followings: 2
rMPRZ/view?usp
and Classes
=sharing
https://drive.goog

II YEAR II SEM CSE Page 112


le.com/file/d/1zrc
RxEn9u883AkT7
xX-
LM4Pq2qUTwwI
3/view?usp=shari
ng
https://drive.goog
Comparators, le.com/file/d/1TL
Collection jAz6ayMA745W a) For-Each alternative, MapInterfaces T1,T
42
algorithms, aOvJ6OfCvDUhf and Classes 2
Arrays, xrFuX/view?usp=
sharing
https://drive.goog
le.com/file/d/1Ad
sbzysRXv1VfvR
pZyDV1lReLWq
The Legacy
rc0Ns/view?usp=
Classes and
sharing T1,T
43 Interfaces- b) Comparators
https://drive.goog 2
Dictionary,
le.com/file/d/1TE
Hashtable
fAo6h3mD71r8F
eP7nT5H-
XdOpzXnin/view
?usp=sharing
https://drive.goog
le.com/file/d/1xX
xgUOG_LKlgVv
Je22Gq2EbE0XX
hu-
Properties, eG/view?usp=sha
Stack, Vector ring T1,T
44 c) Legacy Classes and Interfaces
More Utility https://drive.goog 2
classes, le.com/file/d/1hz
ugiRVpozNILrZ6
-
2w46f3KhEVv0
AjN/view?usp=sh
aring
https://drive.goog
le.com/file/d/1xX
xgUOG_LKlgVv
Je22Gq2EbE0XX
hu-
https://drive.goo
eG/view?usp=sha
gle.com/file/d/1
ring T1,T
45 Utility classes Adc5IGpxThXR d) String Tokenizer, Bit Set
https://drive.goog 2
mJ3IquVNWeih
le.com/file/d/1hz
WQAli5Aj/view
ugiRVpozNILrZ6
?usp=sharing
-
2w46f3KhEVv0
AjN/view?usp=sh
aring
https://drive.goog
le.com/file/d/1rW
eKghqJeso4G36
D1HVHKy2xFU
a7CAjg/view?usp
Date, =sharing
Calendar, https://drive.goog
Date, Calendar, Random Formatter, T1,T
46 Random le.com/file/d/1aw
Scanner 2
Formatter, ikfs7J557IpLBW
Scanner 4fPnFqoN17zdq
G4T/view?usp=s
haring
https://drive.goog
le.com/file/d/1e0
Tk-

II YEAR II SEM CSE Page 113


1KvLdYWM3Zd
lv7eeo5wKLwX
CmkF/view?usp=
sharing

Mock Test - T1,T


47 PDF link
II 2
GUI https://drive.goo
https://drive.goog
Programmin gle.com/file/d/17
le.com/file/d/1D
g with Swing 1WuIx_7gyoM3
AZXFv0_NM_S Gathering Knowledge about GUI T1,T
48 – _hl-
TFIioVwymKb9I Programming with Swing 2
Introduction, gIB9lDk6ooVZ3
iIDQTqn/view?us
limitations of v_/view?usp=sh
p=sharing
AWT aring
https://drive.goo https://drive.goog
MVC gle.com/file/d/13 le.com/file/d/1D
architecture, EGKAOxZTzcA AZXFv0_NM_S Gathering Knowledge about GUI T1,T
49
components, k0_CZDxjFYQ TFIioVwymKb9I Programming with Swing 2
containers QWxOOkiVt/vi iIDQTqn/view?us
ew?usp=sharing p=sharing
https://drive.goo
Understandin https://drive.goog
gle.com/file/d/1
g Layout le.com/file/d/1D
KiWkYbRoJprF
Managers, AZXFv0_NM_S Gathering Knowledge about GUI T1,T
50 xwbQde4OmYu
Flow Layout, TFIioVwymKb9I Programming with Swing 2
2-
Border iIDQTqn/view?us
VHzyqkT/view?
Layout, p=sharing
usp=sharing
https://drive.goo
https://drive.goog
gle.com/file/d/1
Grid Layout, le.com/file/d/1D
KiWkYbRoJprF
Card Layout, AZXFv0_NM_S Gathering Knowledge about GUI T1,T
51 xwbQde4OmYu
Grid Bag TFIioVwymKb9I Programming with Swing 2
2-
Layout iIDQTqn/view?us
VHzyqkT/view?
p=sharing
usp=sharing
Event CHALK
Handling- https://drive.goo https://drive.goog BOARD ,PPT
5 The gle.com/file/d/1d le.com/file/d/1D
Know about Event classes, Handling PRESENTAI
Delegation __ghT8NA8IMa AZXFv0_NM_S ON T1,T
52 mouse and keyboard events, Adapter
event model- Bi2nfYAzhQ9In TFIioVwymKb9I 2
classes
Events, Event ksRoQQ/view?u iIDQTqn/view?us
sources, Event sp=sharing p=sharing
Listeners
Event classes,
Handling
mouse and
keyboard
https://drive.goo https://drive.goog
events,
gle.com/file/d/1 le.com/file/d/1D
Adapter
EuB8G8phnsoM AZXFv0_NM_S T1,T
53 classes, Inner Gathering Knowledge about Applets
dX95CxhGwcrP TFIioVwymKb9I 2
classes,
QtI5lpOF/view? iIDQTqn/view?us
Anonymous
usp=sharing p=sharing
Inner classes.
A Simple
Swing
Application
Applets –
https://drive.goo https://drive.goog
Applets and
gle.com/file/d/1d le.com/file/d/1D
HTML,
rlvRDb5obLYQ AZXFv0_NM_S T1,T
54 Security Understand different Pane
eZ5HYUL4fDH TFIioVwymKb9I 2
Issues,
2dZNfpve/view? iIDQTqn/view?us
Applets and
usp=sharing p=sharing
Applications,
****JDBC https://drive.goo https://drive.goog
55 overview Real gle.com/file/d/1h le.com/file/d/1A
time O6GA- GEY_gIpfJo16X

II YEAR II SEM CSE Page 114


j1_NODlpVUhF
applications( 9DoQPDYL1QC
xVRcvC2SdEG
Additional WYlj9QZ/view?u
OTt/view?usp=s
topic) sp=sharing
haring

56 REVISION

II Mid Examinations

IX. MAPPING COURSE OUTCOMES LEADING TO THE ACHIEVEMENT OF PROGRAM


OUTCOMES AND PROGRAM SPECIFIC OUTCOMES:
Program Specific
Program Outcomes (PO)
Course Outcomes (PSO)
Outcome
s PO1 PSO PS
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PSO3
2 1 O2

CO1 3 3 3 - - 2 3 3 - - - 3 2 2 2

CO2 3 3 3 - - 2 3 3 - - - 3 2 2 2

CO3 1 1 1 - - 2 2 2 - - - 2 1 1 1

CO4 3 3 3 - - 2 3 3 - - - 3 2 2 2

CO5 3 3 3 - - 2 3 3 - - - 3 2 2 2

X. QUESTION BANK: (JNTUH)


DESCRIPTIVE QUESTIONS
UNIT-I
Short Answer Questions-
Blooms Course
SNO Question
Taxonomy Level Outcome
1 What is a constructor? Knowledge 5
2 What are objects? How are they created from a class? Knowledge 5
What is the difference between a public member and a private
3 Analyze 2
member of a class?
4 List some java keywords? Knowledge 5
5 What is an array? Knowledge 5

Long Answer Questions-

S.No Question Blooms Taxonomy Level Course Outcome


1 What is Java? Explain the features of Java. Analyze 2
2 Describe the Java environment. Knowledge 5
3 Explain the structure of Java program. Understand 3
4 Explain the data types available in Java. Knowledge 5
5 Explain type casting with example. Knowledge 5

II YEAR II SEM CSE Page 115


UNIT-2
Short Answer Questions-

S.No Question Blooms Taxonomy Level Course Outcome


1 What are the types of inheritances in java? Knowledge 5
2 Explain about Object class in detail. Understand 3
3 Define the abstract class? Knowledge 5
4 Define package? Knowledge 5
5 What is Enumeration? Knowledge 5
Long Answer Questions-
S. Blooms Course
Question
No Taxonomy Level Outcome
What are the types of inheritances in java? Explain each of them in
1 Analyze 2
detail
Is there any alternative solution for Inheritance? If so explain the
2 Apply 3
advantages and disadvantages of it.
What is interface? Write a program to demonstrate how interfaces
3 Knowledge 5
can be extended.
What is package? How do you create a package? Explain about the
4 Knowledge 5
access protection in packages?
5 Explain about final classes, final methods and final variables? Understand 3

UNIT-3
Short Answer Questions-

S.N Blooms Taxonomy Course


Question
o Level Outcome
Explain creation of thread using run able interface with an
1 Understand 3
example
Explain about inter –thread Communication with an
2 Knowledge 4
example
3 Explain about thread interrupts with an example. Understand 3
4 Explain producer consumer problem with an example Understand 3
5 Explain the life cycle of a thread and multithreading Knowledge 5
Long Answer Questions-
Blooms Taxonomy Course
S.No Question
Level Outcome
With the help of an example, explain multithreading
1 Apply 3
by extending Thread class ?
Implementing Run able interface and extending
2 Thread, which method you prefer for multithreading Analyze 2
and why?
3 What is the role of stack in exception handling? Analyze 2
4 Give the classification of exceptions Knowledge 5
In Java, is exception handling implicit or explicit or
5 both? Explain with the help of example Java Analyze 2
programs
II YEAR II SEM CSE Page 116
UNIT-4
Short Answer Questions-

S.No Question Blooms Taxonomy Level Course Outcome


1 Explain StringTokenizer with an example. Understand 3
2 Explain Random and scanner with examples. Knowledge 4
3 Explain hash table and stack with examples. Understand 3
4 Explain Array List and Vector with examples. Knowledge 5
5 Explain enumeration and iterator with an example Knowledge 5
Long Answer Questions-
Sn. Blooms Taxonomy Course
Question
N Level Outcome
1 Write about Java Collection frame with example? Knowledge 5
Write about a)Enumeration b)String Tokenizer c) Calendar
2 5
and Properties Knowledge
What is inter thread communication. What methods are
3 Knowledge 5
employed?
How will you create strings and StringBuffers? How will you
4 Analyze 2
modify them?
5 Why do you use frames? Knowledge 5

UNIT-5
Short Answer Questions-

S.No Question Blooms Taxonomy Level Course Outcome


1 Explain applet security issues? Understand 2
2 Write a program for passing parameters to applet? Apply 3
3 Define AWT? Knowledge 5
4 What are various JFC containers? Analyze 2
5 Define JFrame, JApplet, JDialog and Jpanel Knowledge 5
Long Answer Questions-

Blooms
S. Course
Question Taxonomy
No Outcome
Level
What are the methods supported by Key Listener interface and Mouse
1 Knowledge 5
Listener interface. Explain each of them with examples.
Explain the functionality of JComponent with example. Differentiate
2 Knowledge 5
JComponent and JPanel.
3 Write a java program which creates human face. Apply 3
What are various JFC containers? List them according to their
4 Knowledge 5
functionality. Explain each of them with examples.
Write a java program which draws a dashed line and dotted line using
5 Apply 3
applet.

II YEAR II SEM CSE Page 117


OBJECTIVE QUESTIONS JNTUH:
UNIT-1
1. Java is developed by ___________________
ans)Sun Microsystems of USA
2. ____________ is one of the java features that enables java program to run anywhere anytime.
ans)Platform-Independent
3. Java compiler translates source code into -----------
ans) Bytecode (Virtual Machine Code)
4. Java interpreter translates _____________ into machine code.
ans) Bytecode(Virtual Machine Code)
5. Java compiler produces an intermediate code known as ---------------
ans)Bytecodes
6. ____________ tool helps us to find errors in our programs.
Ans) jdb
7. The ____________ includes hundred of classes and methods grouped into several function packages.
ans)API
8. The java interpreter uses ____________ method before any objects are created. (b)
a) Main
9. ____________ is use for naming classes, methods, variables etc in a program. (c)
ans)Identifier
10. _____________ operator is used to construct conditional expression. (c)
ans)Ternary(?:)

UNIT-2
1._______________ is default access specifier in JAVA.
a)friendly b) private c) protected d) public
2. _________ Variables and methods can be called without using the objects.(a)

a)static b) final c)abstract d) none of the above


3. Which of the following statements is true? (b)
a)Java supports operator overloading b) Java supports interfaces
c) Java supports pointers d) Java supports multiple inheritance
5. We cannot create a subclass of _________ class. (d)
a)Abstract b) public c)static d) final
6. ____ methods must be override in the subclass. (c)
a) public b)final c) abstract d) static
7. What keyword is used in Java to define a constant?
a) static b) final c) abstract d) private (b)
8. ______ constructor is created when object of particular is created. (a)
a) default b) parameterized c) copy d) none
9. _____inheritance is not supported by java. (a)
a) Multiple b) multilevel c) hierarchical d) hybrid
10. We cannot create a subclass of ____class. (d)
a) abstract b) public c) static d)final

UNIT-3
1. Which is a checked Runtime Exception? [ ]
A. Null Pointer Exception B. Interrupted Exception
C. Arithmetic Exception D. ArrayIndexOutOfBoundsException

II YEAR II SEM CSE Page 118


2. Which of the following method is not defined by MouseListener Interface? [ ]
A. Mouse Clicked B. mouse Dragged C. mouse Released D. mouse Exited
3. Which of the following layout is used as default layout manager? [ ]
A. Border Layout B. Card Layout C. Flow Layout D. Grid Layout
4. The following method is called when we leave a web page that contains an applet [ ]
A. Pause ( ) B. stop( ) C. destroy( ) D. hide( )
5. Which of the following method doesn’t belong to Thread? [ ]
A.s Alive B. join C. sleep D. wake
6. Which event is generated when a scrollbar is manipulated? [ ]
A. Item Event B. Adjustment Event C. Check Event D. Text Event
7. Which block following will execute whether or not an exception is thrown? [ ]
A. Try B. Catch C. Throw D. Finally
8. _________method is used to find the nth no.of character of given string s1.
A. s1.index(n) B. S1.substr(n) C. 1.length() D. s1.charAt(n) [D]
9. Character streams can be used to read and write _____ Unicode characters.
Ans) 16-bit
10 “Converting invalid string to a number” is the ________type of error.
Ans) Runtime
UNIT -4
1. The following method is called when we leave a web page that contains an applet [ ]
A. pause ( ) B. Stop ( ) C. Destroy ( ) D. Hide ( )
2. What is the argument type of program’s main () method? [ ]
A. Character array B. String array C. String D. Character
3. Which one does not have a value Of (String) method [ ]
A. Long B. Boolean C. Character D. Integer
4. Which operator is used to create and concatenate string? [ ]
A. ++ B. && C. & D. +
5. Which of the following are Java keywords (asopposedtoreservedwords)? [ ]
A. go to B. FALSE C. Extends D. malloc
6. What is the minimum value of char type? Select the one correct answer. [ ]
A. 0 B. -215 C. 215-1 D. -28
9. _______is a passive control. [ ]
a. TextField b. Label c. Button d. TextArea
10. ______is a single line edit control. [ ]
a. TextField b. Label c. Button d. TextAreaControl
UNIT -5
1. 1. _____ is used to connect Java’s I/O system to other programs.
2. The ________ allows us to pass parameters to the Applet through HTML page.
3. TCP/IP is used to implement _______ connection.
4. The class Event Object is defined in ________ package.
5. The _________ function can be used to find IP address of the host machine.
6. The fundamental class of Java swing JApplet extends _________ class.
7. Border Layout manager divides window in to _____ areas.
8. A try block may have _______ number of catch block(s).
9. To select or to change the font we have to use _______ method.
10. At the top of the AWT hierarchy is the ___________ class.
XII. GATE QUESTIONS: NOT APPLICABLE
XIII. WEBSITES:
1 http://www.javatpoint.com/
2 java.sun.com/docs/books/tutorial/java/TOC.html

II YEAR II SEM CSE Page 119


3 http://www.learnjavaonline.org/
4 http://www.tutorialspoint.com/java/
5 www.java.com/en/download/faq/develop.xml
6 www.oracle.com › Java › Java SE
7 www.w3schools.com
XIV. EXPERT DETAILS:
1. Prof. Sriram K Rajamani,Ph.D (IITH)
2. Dr. R.B.V. Subramanian (NITW)
XV. JOURNALS:
1. iosrjournals.org/
2. java.sys-con.com/
3. cisjournal.org/journal of computing/
4. www.bizjournals.com
5. www.ijcaonline.org

XVI. LIST OF TOPICS FOR STUDENT SEMINARS:


1. Classes & Instances
2. Inheritance
3. Method Binding
4. Java Buzzwords & Data Types
5. Classes & Objects
6. Access Control
7. Method Overloading
8. Method Overriding
9. Packages & Interfaces
10. Exception Handling
11. Multithreading
12. Event Handling
13. Applets
14. Swings
15. Black Berry technology
16. Facebook thrift
17. Blue jacking
18. Mobile number portability
19. Cyber crime
20. Joomla &CMS

XVII. CASE STUDIES / SMALL PROJECTS:

PROJECT 1:
Private Banking Network java project explains about developing a software application forbanks for
working, communication and sharing information inside organization. This project report covers purpose of
intranet banking, literature survey, system analysis, software and hardware requirement, system architecture
and system testing. This project is developed in java platform using socket programming.
This application works like a distributed systems using OOPS and networking concepts. Private banking
network is a intranet application which works inside organization. Systems inside organization are
interlinked with LAN and other networks are connected using leased lines. Intranet connections are
connected to external networks using different gateways. In banking sector communication between
employees is compulsory so this application will help to communicate, share documents and allow
teleconference features for employees inside organization. This software provides scope for further

II YEAR II SEM CSE Page 120


development by integrating software with appropriate hardware equipment and uses it as ATM software.
This application can be useful only for banking sector and present application is restricted to offline
banking, accounting, money management. With few modifications this software can be interlinked with
online banking.

PROJECT 2:-

Control System in Network Environment is implemented using java. This projects is useful for computer
science final year students who are interested in developing network related project.
In cellular communication networks, the geographical area is divided into smaller regions, called cells. In
each cell, there is one Mobile Service Station (MSS) as well as a number of Mobile Hosts (MH). The
communication between MSSs is, in general, through wired links, while the links between an MH and MSS
is wireless. A Mobile Host can communicate with other Mobile Hosts in the system only through the Mobile
Service Station in its cell.
There are two kinds of channels available to an MH: communication channel and control channel. The
former is used to support communication between an MH and the MSS in its cell, while the latter is set aside
to be used exclusively to send control messages that are generated by the channel allocation algorithm. In
this paper, henceforth, unless specified otherwise, the term channel or wireless channel refers to a
communication channel. When an MH wants to communicate with another MH, it sends a request message
to the MSS in its own cell. The request can be granted only if a wireless channel can be allocated for
communication between MSS and MH. Since channels are limited, they should be reused as much as
possible.

II YEAR II SEM CSE Page 121

You might also like