QB
QB
PART – A (2 MARKS)
1. What is Programming Paradigm?
2. What is Object Oriented Programming?
3. What are important features in object-oriented programming and design?
4. How could Java classes direct program messages to the system console, but error messages,
say to a file?
5. What's the difference between an interface and an abstract class?
6. Why would you use a synchronized block vs. synchronized method?
7. State the usage of the keyword transient?
8. Define object and object variable ?(Apr/May 2011)(May/June 2013)
9. What is meant by private access specifier? (Nov/Dec 2011)
10. What is the need for javadoc multiline comments. (Nov/Dec 2011)
11. Define Constructor. (Nov/Dec 2011)
12. What is a class? (Nov/Dec 2011)
13. What are the fundamental features of object-oriented programming?
14. What is Encapsulation?
15. What is a Type?
16. What is a class Members?
17. What is meant by Access Specifiers?
18. Define the Static Class Method.
19. How to Write a Finalize method using Java. (May/June 2013)
20. What is an array? How to declare an array in java?
21. What is the use of Strings in Java?
22. Write about String Tokenizer?
23. Define Java Packages.
24. What is JavaDoc? (Nov/Dec 2011)
25. Mention the types of the JavaDoc.
26. Mention the purpose of finalize method. (May/June 2013)
27. How to access member variables from the class?
28. Write about Java I/O Package?
PART – A (2 MARKS)
1. Define Inheritance. May/June 2012
2. What are the conditions to be satisfied while declaring abstract classes?
3. You can create an abstract class that contains only abstract methods. On the other hand, you
can create an interface that declares the same methods. So can you use abstract classes
instead of interfaces?
4. Define Polymorphism.
5. Write about Virtual methods.
6. What is Static Binding?
7. What is Dynamic binding?
8. What is an Abstract classes and Methods?
9. When an Abstract Class Implements an Interface?
10. What is Object Class?
11. What is an interface? (Nov/Dec 2011)
12. What are the uses of Interfaces? (Nov/Dec2010)
13. Why Interfaces Do not Provide Multiple Inheritances?
14. What is meant by Reflection API?
15. What are the uses of Reflection?
16. What are the Drawbacks of Reflection?
17. What is object cloning in Java? (May/June 2013)
18. Define Inner classes. (Apr/May 2011)
19. What are the properties of proxy class?
20. What is final modifier? (May/June 2013)
Part-C 15 MARK
1. Develop a static Inner class called Pair which has MinMax method for finding min and max
values from the array.
2. Explain the following with examples(NOV/DEC 2010)
i. The clone able interface(8)
ii. The property interface. (7)
3. Develop an application using inheritance and interfaces
4. Develop a book application and apply various string operations to find particular string.
5. With the help of real time application explain object cloning in java.
ADITHYA INSTITUTE OF TECHNOLOGY
COIMBATORE – 641 107
Degree: B.Tech. & Branch: IT
Semester: 03 & Year: II
CS8392 – OBJECT ORIENTED PROGRAMMING
Question Bank
UNIT: 3 – EXCEPTION HANDLING AND I/O
PART – A (2 MARKS)
1. What is an Exception?
2. Write down the purpose of exception handling mechanism.
3. What are the types of exceptions?
4. How the exception handling is managed?
5. Write down the general form of an exception-handling block.
6. What are the two subclasses under Throwable class?
7. What is an Error?
8. What is an Exception?
9. Draw the diagrammatical representation for Exception Hierarchy
10. Write down the use of try and catch block in exception handling.
11. Explain the situation where we need to use multiple catch clauses.
12. Write down the syntax for multiple catch clauses.
13. Explain the situation where we need to use nested try statements.
14. Write down the syntax for nested try statement. {
15. Write down the use of throw statement.
16. Write down the use of throws clause.
17. Write down the use of finally clause.
18. What is Unchecked Exception?
19. What is Checked Exception?
20. Write down some of the unchecked exceptions in
21. Write down some of the checked exceptions in RuntimeException?
22. List the way to create own exceptions.
23. Define Stack Trace Elements.
24. List out the methods in StackTraceElements
25. What is meant by a stream?
26. What are the two types of streams?
27. What are the predefined stream variables in System class?
28. What is meant by a byte stream?
29. What are abstract classes in byte streams?
30. List out some of the Byte Stream Classes.
31. What is meant by a Character stream?
32. What are abstract classes in Character streams?
33. List out some of the Character Stream Classes.
34. How to read a character from BufferedReader Class?
35. How to read the string from BufferedReader Class?
36. What is the use of PrintWriter class?
37. Write the use of FileInputStream class
38. Write down the methods in FileInputStream Class.
39. Write the use of FileOutputStream class.
40. Write down the methods in FileOutputStream Class.
PART – A (2 MARKS)
1. Differentiate multitasking and multithreading.
2. What is thread?
3. Write the states of a thread.
4. Draw the life cycle of thread.
5. What is the role of Newborn State?
6. What is the role of Runnable State?
7. Write down the role of Running State.
8. Write down the role of Blocked State.
9. Write down the role of Dead State.
10. What are the ways of creating threads?
11. What are the methods in Thread class?
12. What is the difference between yielding and sleeping?
13. Can I implement my own start() method?
14. How do you set the priority to a thread?
15. How to synchronize the threads in Java?
16. Write the purpose of using synchronization in threads?
17. What are the types of Thread Synchronization?
18. Write down the use synchronized method.
19. What is the use of synchronized block?
20. What is the use of static synchronization block?
21. What is meant by Daemon thread in Java?
22. How does the interprocess communication happen?
23. Write down the purpose of using Daemon thread in java.
24. What are the methods of daemon thread?
25. What is meant by ThreadGroup?
26. Write down the constructors of ThreadGroup.
27. Write down some of the methods in ThreadGroup.
28. Write the purpose of using generic programming.
29. What is meany by generic class?
30. What is meany by generic method?
31. Write down the rules to define Generic methods.
32. Write down the use of bounded type parameters.
33. What is meant by Wild Card argument?
34. What is meant by Bounded Wildcards?
PART – A (2 MARKS)
Prepared By
Rupilaa V M