MAY/JUNE - 2011
CS 55 - PROGRAMMING PARADIGMS
CS 55 - PROGRAMMING PARADIGMS
PART A - (10 x 2 = 20)
- What is the default access to a member in a class?
- What is a package?
- How to prevent inheritance?
- Differentiate copying and cloning.
- What is a JPanel object?
- What method is used to distinguish between single, double and triple mouse clicks?
- Why generic programming is required?
- What are Wildcard Types?
- Mention the two mechanisms for protecting a code block from concurrent access.
- What do you mean by MIN_PRIORITY?
PART B - (5 x 16 = 80)
- (a) How Strings are handled in java? Explain with code, the creation of Substring, Concatenation and testing for equality.[16]
[OR]
(b) Explain with an example the following features of Constructors: [16]
(i) Overloaded constructors
(ii) A Call to another constructor with this operator
(iii) An object initialization block
(iv) A static initialization block
- (a) What is dynamic binding? How it is achieved? [16][OR](b) (i) Explain interfaces with example. [8]
(ii) Compare interfaces and abstract classes. [8]
- (a) Explain swing and JFrame with a helloworld program.
[16]
[OR]
(b) How Model View Controller design pattern is achieved? [16]
- (a) How generic methods and generic expressions are
translated? [16]
[OR]
(b) Explain in details, the inheritance rules for generic types. [16]
- (a) Explain the procedure for running a task in a separate
thread and running multiple threads. [16] [OR]
(b) Explain the states of threads and how the thread is interrupted?
NOV/DEC - 2011
CS 55 — PROGRAMMING PARADIGMS
CS 55 — PROGRAMMING PARADIGMS
PART A — (10 × 2 = 20 marks)
- What is meant by private access specifier?
- What is the need for javadoc multiline comments?
- What is meant by dynamic method dispatch?
- What is object cloning?
- Differentiate GridBagLayout from GridLayout.
- What is meant by window adapter classes?
- List out the motivation needed in generic programming.
- How will create throw exception in exception handling?
- What is meant by notify methods in multithreading?
- How will interrupt threads in multiple windows?
PART B — (5 × 16 = 80 marks)
- (a) Explain briefly about object oriented programming concepts differ from structured programming concepts. [16]
[OR]
(b) Write a java program for push and pop operations in stack using arrays in classes and object. [16]
(b) Write a java program for push and pop operations in stack using arrays in classes and object. [16]
- (a) Explain briefly about multilevel inheritance with neat
example. [16]
[OR]
(b) Explain how inner classes and anonymous classes works in java program. [16] - (a) Write an applet program to draw an flower with color
packages. [16]
[OR]
(b) Write short notes on(i) JLabel [4](ii) JButton [4](iii) Layout managers in Java Swing [8]
- (a) Explain briefly about generic classes and methods in
Java programming. [16][OR]
(b) Explain briefly about user defined exceptions and stack trace elements in exception handling mechanisms. [16]
- (a) Explain briefly about thread synchronization in
multithreading concepts. [16][OR]
(b) (i) Explain thread states in concurrent programming with an example. [8]
(ii) Explain the life cycle of threads in multithreading environment. [8]
MAY/JUNE - 2012
CS 55 — PROGRAMMING PARADIGMS
CS 55 — PROGRAMMING PARADIGMS
PART A — (10 × 2 = 20 marks)
- What do you mean by instance variables?
- Mention the purpose of finalize method.
- What are the conditions to be satisfied while declaring abstract classes?
- Define inheritance.
- How do you manage the color and font of a graphics in applet?
- Mention any four event names of a button component.
- What do you mean by reflection?
- What is an exception?
- What is multithreading?
- Write note on synchronization.
PART B — (5 × 16 = 80 marks)
- (a) Write a java program to sort ten names in descending
order. [16][OR]
(b) Explain string handling classes in Java with examples. [16]
- (a) Give an elaborate discussion on inheritance. [16][OR]
(b) Differentiate method overloading and method overriding. Explain both with an example program. [16]
- (a) Explain any five swing components with an example
program. [16][OR]
(b) Discuss Mouse Listener and Mouse Motion Listener. Give an example program. [16]
- (a) Explain the following [16](i) Generic classes(ii) Generic methods[OR]
(b) Discuss on Exception handling in detail. [16]
- (a) Explain the following (i) States of a thread with a neat diagram. [10]
(ii) Thread priorities. [6]
[OR]
(b) Write a java application that illustrate the use of multithreading. Explain the same with sample input. [16]
1 comment:
roll no (31):-> Thanku very much sir!!!!!
Post a Comment