Skip to content

// Anna University, Chennai / 2024

Anna University — Object Oriented Programming (CS3391), November/December 2024

Object Oriented Programming · CS3391 · R2021 · B.E. Computer Science and Engineering

Files open in a new tab. Use your browser's download or save option to keep a copy.

Work through the questions

16 questions

No verified answers are available for this paper.

  1. Question 1

    Part ADescriptive2 marks

    Object-Oriented Programming

    How is encapsulation achieved in java?

    No verified answer or solution is available for this question.

  2. Question 2

    Part ADescriptive2 marks

    Object-Oriented Programming

    State the type promotion rule in Java.

    No verified answer or solution is available for this question.

  3. Question 3

    Part ADescriptive2 marks

    Object-Oriented Programming

    State the two general forms of using super keyword.

    No verified answer or solution is available for this question.

  4. Question 4

    Part ADescriptive2 marks

    Object-Oriented Programming

    What is method overloading?

    No verified answer or solution is available for this question.

  5. Question 5

    Part ADescriptive2 marks

    Object-Oriented Programming

    Define thread priority.

    No verified answer or solution is available for this question.

  6. Question 6

    Part ADescriptive2 marks

    Object-Oriented Programming

    Why is autoboxing used?

    No verified answer or solution is available for this question.

  7. Question 7

    Part ADescriptive2 marks

    Object-Oriented Programming

    Write any two forms of PrintStream constructors.

    No verified answer or solution is available for this question.

  8. Question 8

    Part ADescriptive2 marks

    Object-Oriented Programming

    State the functionality of BufferedInputStream( ).

    No verified answer or solution is available for this question.

  9. Question 9

    Part ADescriptive2 marks

    Object-Oriented Programming

    How CardLayout class is unique among the other Layout managers?

    No verified answer or solution is available for this question.

  10. Question 10

    Part ADescriptive2 marks

    Object-Oriented Programming

    What is an Inner class?

    No verified answer or solution is available for this question.

  11. Question 11

    Part BDescriptive13 marks

    Object-Oriented Programming

    (a) Explain in detail about Java's Selection statements with example. (OR) (b) What is a class? Write the general form of a class and explain how to declare an object and add a method to class that takes parameter?

    No verified answer or solution is available for this question.

  12. Question 12

    Part BDescriptive13 marks

    Object-Oriented Programming

    (a) Explain about the Dynamic Method Dispatch in Java with example. (OR) (b) Discuss in detail about the methods available in object class.

    No verified answer or solution is available for this question.

  13. Question 13

    Part BDescriptive13 marks

    Object-Oriented Programming

    (a) Explain how the exception handling in java is handled. (OR) (b) Discuss in detail about java thread model.

    No verified answer or solution is available for this question.

  14. Question 14

    Part BDescriptive13 marks

    Object-Oriented Programming

    (a) Write a Java program that read and write the data from console. (OR) (b) Discuss the four different ways to extract a character from string object.

    No verified answer or solution is available for this question.

  15. Question 15

    Part BDescriptive13 marks

    Object-Oriented Programming

    (a) Discuss in detail about the delegation event model approach for event handling. (OR) (b) Explain in detail about the class hierarchy for panel and frame.

    No verified answer or solution is available for this question.

  16. Question 16

    Part CDescriptive15 marks

    Object-Oriented Programming

    (a) Explain the concept of threads in Java. Write a Java program that creates three threads. Each thread should decrement its counter variable for every 10 seconds. (OR) (b) Develop a java application for a simple calculator that performs basic arithmetic operations (addition, subtraction, multiplication and division). How do you handle the 'division by zero' scenario gracefully? Include your suggestion in the implementation.

    No verified answer or solution is available for this question.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam