Iee Paper

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

http://www.vidyarthiplus.

com

CS2305 Programming Paradigms


UNIT I PART A 1. What are the OOP Principles? 2. What is Encapsulation, Polymorphism & Inheritance? 3. If ObjA1 is an object of class A created using new keyword, what does the statement A ObjA2=ObjA1; mean? 4. What is a constructor? 5. What is wrapper class? 6. What are the different access specifiers available in Java? 7. What is the default access specifier in Java? 8. What is a package in Java? 9. Name some Java API Packages. 10. Name some JavaDoc Comments. PART B 1. Explain OOP Principles and Features of Java. 2. Explain Constructors with examples and What are the methods available under String and String Buffer Class. 3. Explain the methods available under String and String Buffer Class. 4. Explain the Date Class methods with examples. 5. Explain Packages in detail and Illustrate with examples: static and final. 6. Explain method overriding.What is javaDoc? Explain the comments for classes, methods, fields and link. UNIT II PART A 1. Define Inheritance and its type. How is multiple inheritance achieved in java? 2. What is the use of super keyword? 3. Differentiate overloading and overriding. 4. Differentiate static binding and dynamic binding. 5. What is an abstract class? What is the need for abstract classes? 6. What is reflection? What are the uses of reflection in Java? 7. Define an interface. What is the need for an interface? 8. Differentiate Abstract classes and interface. 9. What is object cloning? Differentiate shallow copy and deep copy in cloning. 10. What is nested class? Mention its types. What are the rules for inner class?

http://www.vidyarthiplus.com

http://www.vidyarthiplus.com

PART B 1. Explain the concept of inheritance and its types ,Overriding, Dynamic Binding with an example 2. Explain the uses of reflection and interface with examples. 3. What is object cloning? Explain deep copy and shallow copy with examples. 4. Explain static nested class and inner class with examples. 5. Explain the different methods supported in Object class with example. 6. Explain the Methods supported in reflect package. Also write a program to implement the reflection of a particular class details like constructors, methods and fields with its modifiers. . UNIT III PART A 1. Draw the inheritance hierarchy for the frame and component classes in AWT and Swing. 2. What are the advantages of using swing over awt? 3. How do achieve special fonts for your text? Give example. 4. Give the syntax of drawImage () and copyArea () methods. 5. What is Adapter class? 6. Draw the AWT event Hierarchy. 7. What are the swing components? 8. What are the methods under Action Interface? 9. What are the methods under WindowListener Interface? 10. What is the difference between Swing and AWT? PART B 1. 2. 3. 4. 5. Explain the classes under 2D shapes. Explain event handling with examples. Explain action event with an example. What are the swing components? Explain. Describe the AWT event hierarchy.

UNIT IV PART A 1. What is generic programming? 2. What are Checked and UnChecked Exception? 3. What are checked exceptions?
http://www.vidyarthiplus.com

http://www.vidyarthiplus.com

4. What are runtime exceptions? 5. What is the difference between error and an exception? 6. What classes of exceptions may be caught by a catch clause?. 7. If I want an object of my class to be thrown as an exception object, what should I do? 8. How to create custom exceptions? 9. What are the different ways to handle exceptions? 10. What is the purpose of the finally clause of a try-catch-finally statement? 11. What is the basic difference between the 2 approaches to exception handling. Is it necessary that each try block must be followed by a catch block? 12. How does Java handle integer overflows and underflows? PART B 1. 2. 3. 4. 5. Explain generic classes and methods. Explain exception hierarchy. What are the advantages of Generic Programming? Explain the different ways to handle exceptions. How Java handle overflows and underflows?

UNIT V PART A
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Describe synchronization in respect to multithreading. Explain different way of using thread? What is synchronization and why is it important? When a thread is created and started, what is its initial state? What are synchronized methods and synchronized statements? What is daemon thread and which method is used to create the daemon thread? What is the algorithm used in Thread scheduling? What are the different level lockings using the synchronization keyword? What are the states of a thread? What are the threads will start, when you start the java program? What are the different identifier states of a Thread? Why do threads block on I/O?

PART B 1. 2. 3. 4. 5. Explain the different states of a thread. Explain thread synchronization with examples. Explain the algorithm used for thread scheduling. Describe multi-threading. Explain Deadlocks.

http://www.vidyarthiplus.com

You might also like