0% found this document useful (0 votes)
4 views

Object Oriented Programming Through Java (Cs305es)

The document outlines a course on Object Oriented Programming through Java, detailing its importance in developing applications across various platforms. It includes course objectives, outcomes, prerequisites, and a comprehensive syllabus covering key concepts such as inheritance, polymorphism, exception handling, multithreading, and GUI programming. Additionally, it lists suggested textbooks and resources for further learning.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Object Oriented Programming Through Java (Cs305es)

The document outlines a course on Object Oriented Programming through Java, detailing its importance in developing applications across various platforms. It includes course objectives, outcomes, prerequisites, and a comprehensive syllabus covering key concepts such as inheritance, polymorphism, exception handling, multithreading, and GUI programming. Additionally, it lists suggested textbooks and resources for further learning.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

OBJECT ORIENTED PROGRAMMING

THROUGH JAVA

Subject Code: CS305ES


Regulations : R16 - JNTUH
Class : II Year B.Tech CSE I
Semester

Department of Computer Science and Engineering


BHARAT INSTITUTE OF ENGINEERING AND TECHNOLOGY
Ibrahimpatnam - 501 510, Hyderabad
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(CS305ES)
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
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 with
synchronization.
CO6 Able to understand the use of Collection Framework.
CO7 Able to design GUI based applications and develop applets for web applications.
V. HOW PROGRAM OUTCOMES ARE ASSESSED:

Proficiency
Program Outcomes (PO) Level
assessed by
PO1 Engineering knowledge: Apply the knowledge of
Assignments,
mathematics, science, engineering fundamentals, and an
3 Tutorials, Mock
engineering specialization to the solution of complex
Tests
engineering problems.
PO2 Problem analysis: Identify, formulate, review research
literature, and analyze complex engineering problems Assignments,
reaching substantiated conclusions using first principles 3 Tutorials, Mock
of mathematics, natural sciences, and engineering Tests
sciences.
PO3 Design/development of solutions: Design solutions for
complex engineering problems and design system
Assignments,
components or processes that meet the specified needs
3 Tutorials, Mock
with appropriate consideration for the public health and
Tests
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, Assignments,
legal and cultural issues and the consequent 3 Tutorials, Mock
responsibilities relevant to the professional engineering Tests --
practice.
PO7 Environment and sustainability: Understand the impact
of the professional engineering solutions in societal and Assignments,
2
environmental contexts, and demonstrate the knowledge Tutorials,
of, and need for sustainable development.
PO8 Ethics: Apply ethical principles and commit to
professional ethics and responsibilities and norms of the 1 Assignments
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
Proficiency
Program Outcomes (PO) Level
assessed by
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- Assignments,
2
long learning in the broadest context of technological Tutorials
change.

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

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 Assignme
of software design process. Familiarity and practical nts,
3
competence with a broad range of programming language and Tutorials,
open source platforms. Use knowledge in various domains to Mock
identify research gaps and hence to provide solution to new Tests
ideas and innovations.
PSO2 Lectures,
Foundation of mathematical concepts: Ability to apply the
Assignme
acquired knowledge of basic skills, principles of computing,
nts,
mathematical foundations, algorithmic principles, modeling 3
Tutorials,
and design of computer- based systems in solving real world
Mock
engineering Problems.
Tests
PSO3 Successful Career: Ability to update knowledge continuously
in the tools like Rational Rose, MATLAB, Argo UML, R
Lectures,
Language and technologies like Storage, Computing,
2 Assignme
Communication to meet the industry requirements in creating
nts
innovative career paths for immediate employment and for
higher studies.
1: Slight 2: Moderate - : None
(Low) (Medium) 3: Substantial (High)
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.
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,
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:


Wee Course Learning
Lectu
k Outcome Referenc
re TOPIC
N e
No.
o.
UNIT - 1
1 1 Know about Book No.
A way of viewing world – Agents and Agents and 1, 2
Communities, Communities
2 Gathering
Knowledge
About Messages
methods
Messages and methods, Responsibilities
Responsibilities, Classes and Classes and
Instances Instances
3 Class Hierarchies- Inheritance, Understanding the
Method Class Hierarchies
binding, Overriding and Exceptions, and Object-
Summary of Object-Oriented Oriented concepts
concepts
4 Java buzzwords, An Overview of Know about Java
Java, Data types, Variables and buzzwords,
Arrays, operators, expressions Overview of Java,
Variables and
Arrays, operators,
expressions
5 Know about
Control Statements, Introducing Control Statements,
classes, Methods and Classes, String
Methods, Classes,
handling
String handling
6 Inheritance– Inheritance concept, Compose the
2 Inheritance basics, Member access Knowledge of the
7 Constructors, Creating Multilevel Followings:
hierarchy, super uses, using final with
inheritance (a) Inheritance
8 Polymorphism-ad hoc Polymorphism, concept
pure polymorphism, method
(b) Member access
overriding
9 abstract classes, Object class, forms (c) Constructors
of inheritance- specialization, (d) Creating
specification Multilevel
10 hierarchy, super
construction, extension, limitation, uses, using final
3 combination, with inheritance
Benefits of inheritance, costs of (e) Polymorphism
inheritance. Concepts
f) abstract classes
1. Review of Unit-I
2. Mock Test – I
UNIT – 2
3. Packages- Defining a Package, Gathering Book No.
CLASSPATH, Knowledge about 1, 2
4. Access protection, importing Packages and
packages Interfaces.
5. 4 Interfaces- defining an interface,
implementing interfaces,
6. Nested interfaces
Tutorial / Bridge Class # 1
7. 5 Know about
applying
Applying interfaces, variables in interfaces,variables
interfaces and extending interfaces
in interfaces &
extending interfaces
8. Stream based I/O(java.io) – The Compose the
Stream classes-Byte streams and Knowledge of the
Character streams Followings:
9. Reading console Input and Writing a) Stream
Console Output,
classes
10. File class, Reading and writing Files
Tutorial / Bridge Class # 2 b) Reading
11. Random access file operations console Input and
12. The Console class, Serialization Writing Console
13. Output
c) File class
6 Enumerations, auto boxing, generics.
d) Serializatio
n, Enumerations
14. Revision
Tutorial / Bridge Class # 3
UNIT – 3
15. Exception handling - Fundamentals Compose the
of exception handling, Exception Knowledge of the
types Followings:
16. Termination or presumptive models a) Exception
17. 7 Uncaught exceptions, using try and handling
catch, multiple catch clauses
b) built- in
18. Nested try statements, throw, throws
and finally exceptions Book No.
Tutorial / Bridge Class # 4 c) Creating 1, 2
19. built- in exceptions own exception sub
20. Creating own exception sub classes. classes
21. Gathering
Multithreading- Differences
8 between thread-based multitasking Knowledge about
and process-based multitasking Multithreading
22. Revision
Tutorial / Bridge Class # 5
I Mid Examinations (Week 9)
UNIT – 3 Contd.
23. Java thread model, creating threads, Know about Java
24. thread priorities thread model,
25. synchronizing threads, thread priorities, Book No.
26. 10 synchronizing 1, 2
inter thread communication threads, inter thread
communication
Tutorial / Bridge Class # 6
UNIT – 4
27. 11 The Collections Framework Gathering Book No.
(java.util)- Collections overview, Knowledge about 1, 2
Collection Interfaces Collections
28. The Collection classes- Array List, Framework
Linked List, Hash Set (java.util)-
29. Tree Set, Priority Queue, Array
Deque.
30. Accessing a Collection via an Iterator,
Using an Iterator
Tutorial / Bridge Class # 7
31. The For-Each alternative, Compose the
MapInterfaces and Classes Knowledge of the
32. Comparators, Collection algorithms, Followings:
Arrays, a) For-Each
33. 12 The Legacy Classes and Interfaces- alternative,
Dictionary, Hashtable MapInterfaces and
34. Properties, Stack, Vector More Utility
Classes
classes
Tutorial / Bridge Class # 8 b) Comparator
s
35. String Tokenizer, Bit Set
c) Legacy
36. Date, Calendar,
Classes and
37.
Interfaces
d) String
13 Random Formatter, Scanner Tokenizer, Bit Set
e) Date,
Calendar, Random
Formatter, Scanner
38. Revision
Mock Test - II
UNIT – 5
39. GUI Programming with Swing – Gathering Book No.
Introduction, limitations of AWT Knowledge about 1, 2, 4
40. MVC architecture, components, GUI
containers Programming
41. 14 Understanding Layout Managers, with Swing
Flow Layout, Border Layout,
42. Grid Layout, Card Layout, Grid Bag
Layout
Tutorial / Bridge Class # 9
43. 15 Event Handling- The Delegation Know about Event
event model- Events, Event sources, Handling
Event Listeners
44. Know about Event
classes, Handling
Event classes, Handling mouse and
mouse and
keyboard events, Adapter classes
keyboard events,
Adapter classes
45. Inner classes, Anonymous Inner Know about Inner
classes. A Simple Swing Application classes
46. Applets – Applets and HTML, Gathering
Security Issues, Applets and Knowledge about
Applications Applets
Tutorial / Bridge Class # 10
47. passing parameters to applets Compose the
Creating a Swing Applet, Painting in Knowledge of the
Swing, A Paint example Followings:
48. Exploring Swing Controls- JLabel a) passing
and Image Icon, JText Field, parameters to
49. 16 The Swing Buttons- JButton, JToggle applets
Button, JCheck Box, JRadio Button,
b) Swing
50.
JTabbed Pane, JScroll Pane, JList, Controls
JCombo Box, Swing Menus, Dialogs c) Swing
Buttons
Tutorial / Bridge Class # 11
51. Revision
52. Revision
53. 17 Revision
54. Revision
Tutorial / Bridge Class # 12

IX. MAPPING COURSE OUTCOMES LEADING TO THE ACHIEVEMENT OF PROGRAM


OUTCOMES AND PROGRAM SPECIFIC OUTCOMES:
Program
Specific
Outcomes
Cours Program Outcomes (PO) (PSO)
e P P P P P P P P P
Outco O O O O O O O O O PO PO PO PS PS PS
mes 1 2 3 4 5 6 7 8 9 10 11 12 O1 O2 O3
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
C 3 3 3 - - 2 3 3 - - - 3 2 2 2
O5
CO6 1 1 1 - - 2 2 2 - - - 2 1 1 1
C07 2 1 2 1 2 1 2 2 2 1
C08 1 2 2 1 2 1 1 2 1 1
X. QUESTION BANK: (JNTUH)
DESCRIPTIVE QUESTIONS
UNIT-I
Short Answer Questions-
Blooms Course
SNO Question Taxonom Outco
y Level me
1 What is a constructor? Knowledge 5
2 What are objects? How are they created from a class? Knowledge 5
3 What is the difference between a public member and Analyze 2
a private member of a class?
4 List some java keywords? Knowledge 5
5 What is an array? Knowledge 5
Long Answer Questions-
S.N Blooms Taxonomy Course
Question
o Level Outcome
What is Java? Explain the features of
1 Analyze 2
Java.
2 Describe the Java environment. Knowledge 5
3 Explain the structure of Java program. Understand 3
Explain the data types available in
4 Knowledge 5
Java.
5 Explain type casting with example. Knowledge 5
UNIT-2
Short Answer Questions-
S.N Blooms Taxonomy Course
Question
o Level Outcome
What are the types of inheritances in
1 Knowledge 5
java?
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-
Blooms Course
S.
Question Taxonom Outc
y Level ome
What are the types of inheritances in java? Explain
1 Analyze 2
each of them in detail
Is there any alternative solution for Inheritance? If so
2 Apply 3
explain the advantages and disadvantages of it.
What is interface? Write a program to demonstrate how
3 Knowledge 5
interfaces can be extended.
What is package? How do you create a package?
4 Knowledge 5
Explain about the access protection in packages?
Explain about final classes, final methods and final
5 Understand 3
variables?
UNIT-3
Short Answer Questions-
Blooms Course
S.
Question Taxonomy Outcom
Level e
Explain creation of thread using run able
1 Understand 3
interface with an example
Explain about inter –thread Communication
2 Knowledge 4
with an example
Explain about thread interrupts with an
3 Understand 3
example.
Explain producer consumer problem with an
4 Understand 3
example
Explain the life cycle of a thread and
5 Knowledge 5
multithreading
Long Answer Questions-
Blooms
Course
S.No Question Taxonomy
Outcome
Level
With the help of an example, explain
1 Apply 3
multithreading by extending Thread class ?
Implementing Run able interface and
2 extending Thread, which method you prefer Analyze 2
for multithreading and why?
What is the role of stack in exception
3 Analyze 2
handling?
4 Give the classification of exceptions Knowledge 5
In Java, is exception handling implicit or
5 explicit or both? Explain with the help of Analyze 2
example Java programs
UNIT-4
Short Answer Questions-
S.N Blooms Taxonomy Course
Question
o Level Outcome
1 Explain StringTokenizer with an example. Understand 3
Explain Random and scanner with
2 Knowledge 4
examples.
Explain hash table and stack with
3 Understand 3
examples.
Explain Array List and Vector with
4 Knowledge 5
examples.
Explain enumeration and iterator with an
5 Knowledge 5
example
Long Answer Questions-
Blooms Course
Sn.
Question Taxonomy Outco
Level me
1 Write about Java Collection frame with example? Knowledge 5
Write about a)Enumeration b)String Tokenizer c)
2 5
Calendar and Properties Knowledge
What is inter thread communication. What
3 Knowledge 5
methods are employed?
How will you create strings and StringBuffers?
4 Analyze 2
How will you modify them?
5 Why do you use frames? Knowledge 5
UNIT-5
Short Answer Questions-
S.N Blooms Taxonomy Course
Question
o Level Outcome
1 Explain applet security issues? Understand 2
Write a program for passing parameters
2 Apply 3
to applet?
3 Define AWT? Knowledge 5
4 What are various JFC containers? Analyze 2
Define JFrame, JApplet, JDialog and
5 Knowledge 5
Jpanel
Long Answer Questions-
Blooms Course
S. Taxono Out
Question
my com
Level e
What are the methods supported by Key Listener interface
1 and Mouse Listener interface. Explain each of them with Knowledge 5
examples.
Explain the functionality of JComponent with example.
2 Knowledge 5
Differentiate JComponent and JPanel.
3 Write a java program which creates human face. Apply 3
What are various JFC containers? List them according to
4 Knowledge 5
their functionality. Explain each of them with examples.
Write a java program which draws a dashed line and dotted
5 Apply 3
line using applet.
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)
a)friendly b) private c) protected d) public
1. _ 2. _________ Variables and methods can be called without using the objects.
(a)
a)static b) final c)abstract d) none of the above
2. 3

3.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
4. __________ keyword is used to inherit a class. (b)
a)extend b) extends c)implement d) implements
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
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. Which of the following is the valid priority we can use for thread? [ ]
A.MIN_PRIORITY B. MINIMUM_PRIORITY
C. LOW_PRIORITY D. ZERO_PRIORITY
2. Which listener interface is needed in handling Text Field? [ ]
A.ActionListener B. Item Listener C. Text Listener D. Input Listener
3. The following method is called when we leave a web page that contains an applet [ ]
A. pause ( ) B. Stop ( ) C. Destroy ( ) D. Hide ( )
4. What is the argument type of program’s main () method? [ ]
A. Character array B. String array C. String D. Character
5. Which one does not have a value Of (String) method [ ]
A. Long B. Boolean C. Character D. Integer
6. Which operator is used to create and concatenate string? [ ]
A. ++ B. && C. & D. +
7. Which of the following are Java keywords (asopposedtoreservedwords)? [ ]
A. go to B. FALSE C. Extends D. malloc
8. 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
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 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.

You might also like