// 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.
How is encapsulation achieved in java?
No verified answer or solution is available for this question.
State the type promotion rule in Java.
No verified answer or solution is available for this question.
State the two general forms of using super keyword.
No verified answer or solution is available for this question.
What is method overloading?
No verified answer or solution is available for this question.
Define thread priority.
No verified answer or solution is available for this question.
Why is autoboxing used?
No verified answer or solution is available for this question.
Write any two forms of PrintStream constructors.
No verified answer or solution is available for this question.
State the functionality of BufferedInputStream( ).
No verified answer or solution is available for this question.
How CardLayout class is unique among the other Layout managers?
No verified answer or solution is available for this question.
What is an Inner class?
No verified answer or solution is available for this question.
(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.
(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.
(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.
(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.
(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.
(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.