Ece Java
Ece Java
Subject Code:(CS621OE)
Regulations : R16 JNTUH
Class:III Year B.Tech ECE II Semester
After completing this course the student must demonstrate the knowledge and ability to:
Page 2
assessed by
PO1 Engineering knowledge: Apply the knowledge of mathematics, science, Assignments,
engineering fundamentals, and an engineering specialization to the solution 3 Tutorials,
of complex engineering problems. Mock Tests
PO2 Problem analysis: Identify, formulate, review research literature, and
analyze complex engineering problems reaching substantiated conclusions Assignments,
2
using first principles of mathematics, natural sciences, and engineering Tutorials
sciences.
PO3 Design/development of solutions: Design solutions for complex
engineering problems and design system components or processes that Assignments,
meet the specified needs with appropriate consideration for the public 3 Tutorials,
health and safety, and the cultural, societal, and environmental Mock Tests
considerations.
PO4 Conduct investigations of complex problems: Use research-based
Assignments,
knowledge and research methods including design of experiments, analysis
3 Tutorials,
and interpretation of data, and synthesis of the information to provide valid
Mock Tests
conclusions.
PO5 Modern tool usage: Create, select, and apply appropriate techniques,
Assignments,
resources, and modern engineering and IT tools including prediction and
3 Tutorials,
modeling to complex engineering activities with an understanding of the
Mock Tests
limitations.
PO6 The engineer and society: Apply reasoning informed by the contextual
knowledge to assess societal, health, safety, legal and cultural issues and
- -
the consequent responsibilities relevant to the professional engineering
practice.
PO7 Environment and sustainability: Understand the impact of the
professional engineering solutions in societal and environmental contexts, - -
and demonstrate the knowledge of, and need for sustainable development.
PO8 Ethics: Apply ethical principles and commit to professional ethics and
- -
responsibilities and norms of the engineering 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.
PO11 Project management and finance: Demonstrate knowledge and
understanding of the engineering and management 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 preparation and
ability to engage in independent and life-long learning in the broadest - -
context of technological change.
Page 3
PSO2 Foundation of mathematical concepts: Ability to apply the acquired
knowledge of basic skills, principles of computing, mathematical foundations, Assignments,
2
algorithmic principles, modeling and design of computer- based systems in Tutorials
solving real world engineering Problems.
PSO3 Successful Career: Ability to update knowledge continuously in the tools like
Rational Rose, MATLAB, Argo UML, R Language and technologies like Assignments,
Storage, Computing, Communication to meet the industry requirements in 3 Tutorials,
creating innovative career paths for immediate employment and for higher Mock Tests
studies.
1: Slight (Low) 2: Moderate (Medium) 3: Substantial (High) - : None
Course Content:
UNIT-IOOP concepts: Data abstraction , encapsulation , inheritance, benefits of inheritance ,
polymorphism, classes and objects , procedural and Object oriented programming paradigms
Java Programming-History of Java, comments, datatypes, variables, constants, , scope and life time of
variables,operators,operator hierarchy, expressions, type conversion and casting, enumerated
types,control flow block scope, conditional statements, loops break and continue statements.simple
java program ,arrays,console input and output, formatting output, constructors, methods, parameter
passing, static fields and methods, access control, this keyword, overloading methods and
constructors recursion,garbage collection,building strings, exploring string class
UNIT-II Inheritance –Definition ,hierarchies, super and subclasses , Member access rules, super
keyword,preventing inheritance : final classes and methods , the Object class and its methods.
Polymorphism- Dynamic binding, method overriding, abstract classes and methods . Interfaces :
Interfaces VS Abstrct classes,defining an interface , implementing interfaces, accessing
implementations through interface references, extending interface.
Inner classes: Uses of inner classes, local inner classes, anonymous inner classes, static inner classes,
examples.Packages: Definition, Creating and Accessing a package, understanding CLASSPATH,
importing packages.
UNIT-III Exception handling – Dealing with errors, benefits of exception handling, the classification
of exceptions- exception hierarchy, checked exceptions and unchecked exceptions, usage of try,
catch, throw, throws and finally, rethrowing exceptions, exception specification,built in exceptions,
creating own exception sub classes
Multi-Threading:- Differences between multiple processes and multiple threads, thread states,
creating threads, interrupting threads, thread priorities, synchronizing threads, inter thread
communication, producer consumer pattern.
UNIT-IV Collection Frame work in java: Introduction to java Collections, overview of java
collection frame work, Generics, commonly used collection classes- ArrayList, Vector, Hash table,
Stack, Enumeration, Iterator,String tokenizer, Random, Scanner, Calendar and Properties
Files: streams – byte streams, character streams, text input/ Output binary input/ output Random
access file operations, file management using file class.
Connecting to Database-JDBC type 1 to 4 drivers , connecting to a data base , querying a data base
and processing the results, updating data with JDBC.
UNIT –V GUI Programming with java-The AWT class hierarchy, Inroduction to Swing, Swing VS
AWT, Hierarchy for Swing components, containers-JFrame, JApplet,JDialog,JPannel, Overview of
some swing components-Jbutton, Jlabel,JTextfield,JTextarea, simple Swing Applications,
LayoutManagement- Layout Manager types- border , grid and flow
Event handling: Events, event sources , event classes, event Listeners, Relationship between event
sources and Listeners Delegation event model, Examples: handling a button click, handling mouse
Page 4
events, Adapter classes. Applets – Inheritance hierarchy for applets, differences between applets and
applications ,life cycle of an applet, passing parameters , applet security issues.
TEXT BOOK:
1. Java Fundamentals – A comprehensive Introduction, Herbert Schildt and
Dale Skrien, TMH.
REFERENCE BOOKS:
1. Java for Programmers, P.J.Deitel and H.M.Deitel, Pearson education (OR) Java: How to
Program P.J.Deitel and H.M.Deitel, PHI.
2. Object Oriented Programming through Java, P.Radha Krishna, Universities Press.
3. Thinking in Java, Bruce Eckel, Pearson Education
4. Programming in Java, S.Malhotra and S.Choudhary, Oxford Univ. Press.
Page 5
Understand conditional
Conditional statements ,loops, break
1 statements ,loops, break and T1 R2
8 and continue statements
continue statements
Use simple java stand alone
Simple java stand alone programs,
1 programs, arrays, console input T1
9 arrays, console input and output
and output
Formatting output, constructors Use formatting output,
1 T1, R2
10 3 ,methods constructors ,methods
Parameter passing, static fields and Use parameter passing, static
1 T1, R2
11 methods fields and methods
Access control, this reference, Use access control, this reference,
1 T1, R2
12 overloading methods overloading methods
Constructors, recursion, garbage Use constructors, recursion,
13 1 collection, building strings, garbage collection, building T1, R2
exploring string class. strings, exploring string class.
Inheritance – Relate Inheritance –
14 2 Inheritance hierarchies super and Inheritance hierarchies super and T1
4 subclasses subclasses
Member access rules, super Explain member access rules,
15 2 T1
keyword super keyword
16 Preventing inheritance: final classes List preventing inheritance: final
2 T1
and methods classes and methods
List the object class and its
17 2 The object class and its methods T1
methods
Dynamic binding, method List dynamic binding, method
18 2 T1
overriding overriding
5
Abstract classes and methods List abstract classes and methods
19 2 T1
Page 6
Exception handling – Illustrate exception handling –
27 3 Dealing with errors, benefits of Dealing with errors, benefits of T1,R2
exception handling exception handling
The classification of exceptions , Understand the classification of
3 T1,R2
exception hierarchy exceptions , exception hierarchy
Checked exceptions and unchecked Understand checked exceptions
3 T1,R2
exceptions and unchecked exceptions
Usage of try, catch, throw, throws Understand usage of try, catch,
30 3 T1,R2
and finally throw, throws and finally
8 Understand rethrowing
Rethrowing exceptions, exception
31 3 exceptions, exception T1,R2
specification
specification
Understand built in exceptions,
Built in exceptions, creating own
32 3 creating own exception sub T1,R2
exception sub classes
classes
Multithreading – Define Multithreading –
33 3 Differences between multiple Differences between multiple T1
processes and multiple threads processes and multiple threads
Thread states, creating threads, Analyze thread states, creating
34 3 T1,R2
9 interrupting threads threads, interrupting threads
Thread priorities, synchronizing Analyze thread priorities,
35 3 T1,R2
threads synchronizing threads
Analyze inter – thread
36 3 Inter – thread communication T1,R2
communication
Analyze producer consumer
37 3 Producer consumer pattern T1,R2
pattern
Explain Collection Framework in
Collection Framework in java –
java –
Introduction to java collections,
38 4 Introduction to java collections, T1,R2
overview of java collection frame
10 overview of java collection frame
work
work
Generics, commonly used Define Generics, commonly used
39 4 T1
collection classes- Array List collection classes- Array List
Vector ,hash table, stack, State Vector ,hash table, stack,
40 4 T1
enumeration, iterator enumeration, iterator
Describe String tokenizer ,random
41 4 String tokenizer ,random ,scanner T1,R2
,scanner
Page 7
Identify Random access file
Random access file operations, file
45 4 operations, file management using T1
management using file class.
file class.
Connecting to Database – JDBC Relate Connecting to Database –
46 4 Type 1 to 4 drivers, connecting to a JDBC Type 1 to 4 drivers, T1,R2
12 database connecting to a database
Querying a database and processing Manage Querying a database and
47 4 T1, R2
the results processing the results
Understand Updating data with
48 4 Updating data with JDBC. R2
JDBC.
GUI Programming with Java – The Understand GUI Programming
49 5 AWT class hierarchy, introduction with Java – The AWT class R2
to swing hierarchy, introduction to swing
Swing Vs AWT, hierarchy for Classify Swing Vs AWT,
50 5 swing components hierarchy for swing components T1
13
List Containers- jframe, japplet,
50 5 Containers- jframe, japplet, jdialog T1
jdialog
Jpanel, overview of some swing Explain Jpanel, overview of
52 5 T1
components – jbutton some swing components – jbutton
Explain Jlabel, jtextfield,
53 5 Jlabel, jtextfield, jtextarea T1
jtextarea
Java lab course description simple Explain Java lab course
54 5 T1
applications description simple applications
14 Layout management – Layout Explain Layout management –
5 manager types – border, grid and Layout manager types – border, T1
flow grid and flow
Event Handling: Events, Event Apply Event Handling: Events,
56 5 T1,R2
sources, Event classes Event sources, Event classes
Event Listeners, Relationship Apply Event Listeners,
57 5 between Event sources Relationship between Event T1,R2
sources
Explain Listeners, Delegation
58 5 Listeners, Delegation event model T1
event model
15
Example: handling a button click, Explain Example: handling a
59 5 handling mouse events, Adapter button click, handling mouse T1
classes. events, Adapter classes.
Applets – Inheritance hierarchy for Explain Applets – Inheritance
5 T1
60 applets hierarchy for applets
Differences between applets and Explain Differences between
5 T1
61 applications applets and applications
16 Understand Life cycle of an
Life cycle of an applet, passing
applet, passing parameters to
5 parameters to applets, applet T1
62 applets, applet security issues.
security issues.
Page 8
Mapping Course Outcomes Leading to the Achievement of Program Outcomes and Program
Specific Outcomes:
Cours Program Specific
e Program Outcomes (PO)
Out Outcomes (PSO)
co
mes
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3
CO1
3 2 3 3 1 2 2 1 - 2 - 2 1 3 3
CO2
3 2 3 2 3 2 2 2 - 2 - 1 - 3 3
CO3
2 3 2 2 3 2 2 1 - 1 - 1 - 2 2
CO4
2 3 2 2 3 2 2 1 - 1 - 1 - 3 3
CO5
3 2 3 3 1 2 2 1 - 2 - 2 - 3 3
1: Slight (Low) 2: Moderate (Medium) 3: Substantial (High) - : None
Question Bank
Descriptive Questions
Unit-1
Short Answer Questions-
Course
S.No Question Blooms Taxony level
outcome
Page 9
5 Write history of java ? understand 3
Unit-1
Long Answer Questions-
Course
S.No Question Blooms Taxony level
outcome
What are the components of Java Architecture? Explain in
1 understand 2
detail
What is object oriented programming? How is it
2 different from procedure-oriented programming? understand 3
Explain the following JAVA key words : (i) static (ii) final
5 understand 3
Unit-2
Short Answer Questions-
Course
S.No Question Blooms Taxony level
outcome
What is inheritance? Explain the member access mechanism in
1 understand 2
inheritance with an example
What is Inheritance? Discuss the differences in inheritances in
2 C++ and java. understand 4
Unit-2
Long Answer Questions-
Page 10
1 Differentiate between composition and 4
analyze
inheritance.
2 Differentiate between method overloading and 5
understand
method overriding
3 Discuss about Hybrid Inheritance with a suitable 1
understand
example.
4 Explain about final classes, final methods and 4
understand
final variables
5 Explain about the abstract class with example 2
program? understand
Unit-3
Short Answer Questions-
S.No Course
Question Blooms Taxony level
outcome
1 2
What is the role of stack in exception handling understand
2 3
Give the classification of exceptions understand
3 List out various classes in \Java.util" and explain them clearly understand 4
4 2
What is Synchronization? Explain with suitable example understand
5 1
Write a program that generates a user defined Exception understand
Unit-3
Long Answer Questions-
Page 11
5 What is the difference between unchecked and 1
understand
checked exceptions in java?
Unit-4
Short Answer Questions-
S.No Course
Question Blooms Taxony level
outcome
1 Write about various Stream Classes in java. 3
understand
2 Discuss about the File Input stream and File Output Stream in java with 5
examples understand
Unit-4
Long Answer Questions-
Unit-5
Short Answer Questions-
S.No Course
Question Blooms Taxony level
outcome
Page 12
1 Write a stand-alone AWT based application which) creates a frame 1
window that responds to mouse clicks and key strokes. understand
Objective-Type Questions
JNTUH
1) Unchecked exceptions are checked at compile-time rather they are checked at runtime.
- Published on 19 Oct 15
a. True
b. False
ANSWER: False
Page 13
2) Which method returns the interrupted flag after that it sets the flag to false if it is true?
- Published on 19 Oct 15
a. isInterrupted()
b. static interrupted()
c. non static interrupted()
d. Both A & C
3) The PipedInputStream and PipedOutputStream classes can be used to read and write data
simultaneously.
- Published on 19 Oct 15
a. True
b. False
ANSWER: True
ANSWER: Inheritance
6) ResultSetMetaData interface is useful because it provides methods to get metadata from the
ResultSet object.
Page 14
- Published on 22 Jul 15
a. True
b. False
ANSWER: True
7) Which constructor creates an empty string buffer with the specified capacity as length.
- Published on 22 Jul 15
a. StringBuffer()
b. StringBuffer(String str)
c. StringBuffer(int capacity)
d. None of the above
8) How many reserved keywords are currently defined in the Java language?
- Published on 22 Jul 15
a. 48
b. 49
c. 50
d. 47
ANSWER: 49
9) Which mechanism is used when a thread is paused running in its critical section and another thread
is allowed to enter (or lock) in the same critical section to be executed?
- Published on 22 Jul 15
a. Inter-thread communication
b. Initial-thread communication
c. Mutual Exclusive
d. None of the above
Page 15
11The new operator
A returns a pointer to a variable
B creates a variable called new
C obtains memory for a new variable
D tells how much memory is available
Answer: Option [C]
12 Which of the following statement is correct?
A For positive numbers, result of operators >> and >>> are same
B Java provides two operators to do left shift <<< and <<
C >> is the zero fill right shift operator
D >>> is the signed right shift operator
Answer: Option [A]
13 Java language has support for which of the following types of comment ?
A block, line and javadoc
B javadoc, literal and string
C javadoc, char and string
D single, multiple and quote
Answer: Option [A]
Java supports three types of comments.
(i)Single line i.e. line e.g. //comment
(ii)Multi line i.e. block e.g. /*comment*/
(iii)Javadoc comments e.g. /**comment*/
14 Command to execute a compiled java program is :
A javac
B java
C run
D execute
Answer: Option [B]
15 The java compiler
A creates executable
B translates java source code to byte code
C creates classes
D produces java Interpreter
Answer: Option [B]
16The order of the three top level elements of the java source file are
A Import, Package, Class
B Class, Import, Package
C Package, Import, Class
D Random order
Answer: Option [C]
17 The minimum value of char type variable is
A ‘\u0020’
B ‘\u00ff’
C ‘\u0010’
D ‘\u0000’
Page 16
Answer: Option [D]
'\u0000' i.e. 0 is the minimum value of the char type varibale in java
Four major principles of object oriented programming are Abstraction, Encapsulation, Inheritance and
Polymorphism
Websites Addresses:
1) http://nptel.iitm.ac.in/video.php?subjectId=106106093
2) https://www.w3schools.com/java/
3) http://docs.oracle.com/javase/7/docs/
Expert details:
1) Dr. Ajai jain working in IITKe
Page 17
1. Basics of a Web application
2. Web Contaner and Web Application Project Set up
3. Servlets
4. Session Management
5. JSPs
Page 18