Unit I Object Oriented Thinking: Need For Oop Paradigm, A Way of Viewing World - Agents, Responsibility
Unit I Object Oriented Thinking: Need For Oop Paradigm, A Way of Viewing World - Agents, Responsibility
Year: II- II
Branch: CSE Subject: Object Oriented Programming Name of the Faculty: B. Ashok Kumar
Unit I
Object oriented thinking: Need for oop paradigm, A way of viewing world Agents, responsibility,
messages, methods, classes and instances, class hierarchies(Inheritance), method binding, overriding and
exceptions, summary of OOP concepts, copying with complexity, abstraction mechanism.
1) What are the OOPs features?
2) Explain the importance of OOP languages?
3) What are the applications of oops?
4) What is data abstraction and encapsulation?
5) Explain about inheritance and polymorphism with an example?
6) Compare Procedural and OOP Languages?
7) What is a class inheritance hierarchy? How is it linked to classes and behavior?
8) Write a short notes on:
a) Inheritance
b) Polymorphism
c) Abstraction
d) Encapsulation
9) Explain the importance of Object-oriented programming languages.
10) Differentiate runtime and compile time polymorphism.
Unit II
Java Basics: History of Java, Java Buzzwords, data types, variables, scope and life time of variables, arrays,
operators, expressions, control statements, type conversion and casting, simple java program, concepts of
classes, objects, constructors, methods, access control, this keyword, garbage collection, overloading methods
and constructors, parameter passing, recursion, nested and inner classes, exploring string class.
1) Explain about buzzwords of java?
2) What are the data types used in java? Give examples?
3) Explain about control statements in java?
4) What is type casting and conversion? When it is required?
5) Explain the general syntax of writing an application in java. Also explain the steps to run the application
of java program?
6) What is an array? How arrays are declared in java with an example?
6) Explain in detail the process of defining, creating, importing and accessing a package with example?
7) How interfaces can be extended? Explain with an example?
8) Give difference between abstract class and interface?
9) How multiple inheritances are achieved in java with the interfaces? Explain with an example?
10) Differentiate between Packages and Interfaces? Explain different types of java packages?
Unit V
Exception Handling: Concepts of exception handling, benefits of exception handling, Termination or
resumptive models, exception hierarchy, usage of try, catch, throw, throws, finally, built in exceptions, creating
own exception sub classes.
String handling, Exploring java.util.
1) When you use nested try statements. Explain nested try statements with the help of an example?
2) Explain the following:
3) What are the checked Exceptions and Unchecked Exceptions? Explain some of these exceptions with
an example and also give the difference between them.
4) In JAVA, is exception handling implicit or explicit or both. Explain with the help of example java
programs.
5) Explain about different types of exception handling techniques in java program.
6) a) Write a java program to demonstrate exception chaining.
b) Can we catch the exception without catch block? Explain?
7) How user can create user defined exceptions. Explain with an example?
8) Explain Logging in Java with all its levels.
9) What is Collection in Java? Can you identify any real life example which is similar to a collection in
Java?
10) Explain the difference between: i) Vector and ArrayList. ii) Enumeration and Iterator.
11) What are the Generics and how are they used in Java with an example?
12) Explain the related objects provided in java.util package?
13) What are the string handlings functions? Explain?
Unit VI
Multithreading: Differences between multi threading and multitasking, thread life cycle, creating
threads, thread priorities, synchronizing threads, inter thread communication, thread groups, daemon
threads. Enumerations, autoboxing, annotations, generics.
1) What is multithreading? Give an example for creation of multiple threads?
2) Compare thread based and process based multitasking?
3) Explain the creation of threads with an example?
4) What is the difference between suspending and stopping a thread? List the methods used to block a
thread?
5) Can we catch the exception without catch block? Explain?
6) Explain how synchronization can be obtained in threads with example?
7) What is deadlock? How it can be avoided. Explain?
8) How user can create user defined exceptions. Explain with an example?
9) How the priorities can be assigned to threads? Explain with example?
10) Define each of the following terms.
a) Thread
b) Multithreading
d) Running state
e) Preemptive scheduling
f) Runnable interface
g) Monitor
h) Notify method
i) Join() method.
Unit VII
Event Handling: Events, Events sources, Event classes, Event Listeners, Delegation event model, handling
mouse and keyboard events, Adapter classes.
The AWT class hierarchy, user interface components- labels, button, canavas, scrollbars, text components,
check box, check box group, choices, lists panels- scroll pane, dialogs, menu bar, graphics, layout managerlayout manager types- border, grid, flow, card and grid bag.
1) Give overview of java event handling mechanism?
2) What is event source? Give examples of event sources. How events are generated. All Events are
generated by user actions. Explain?
3) What are the methods supported by the following interfaces explain.
a) Action Listener Interface
b) Mouse Motion Listener Interface
c) Text listener Interface
4) Define event. Give examples of events. Define event handler. How it handles events?
5) What are delegation event modes? Explain it what are the benefits?
6) With an example show the handling of mouse events in java?
7) With an example show the handling of key events in java?
8) How is a container difference from other types of components?
9) What is a window? What are the operations of window?
10) Explain about the following things: font, Graphics, Color?
11) What are various layout managers available in JFC? Explain of them with their Functionality. Explain
with example?
12) How you will add text area, button, checkbox, lists to an applet? Explain with skeleton Code?