// Anna University, Chennai / 2024
Anna University — Object Oriented Programming (CS3391), April/May 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.
List the features of Object Oriented Programming.
No verified answer or solution is available for this question.
Give an example for defining constant in Java.
No verified answer or solution is available for this question.
Mention the use of constructor overloading.
No verified answer or solution is available for this question.
Illustrate method overriding with an example.
No verified answer or solution is available for this question.
Why to handle exceptions?
No verified answer or solution is available for this question.
What is thread priority? How it can be set for a thread?
No verified answer or solution is available for this question.
Write any four methods associated with basic string class.
No verified answer or solution is available for this question.
What is a String Buffer Class?
No verified answer or solution is available for this question.
Why JAVAFX is preferred for building Internet applications?
No verified answer or solution is available for this question.
Write the constructors of HBox class.
No verified answer or solution is available for this question.
(a) Discuss the various access specifiers in Java. (OR) (b) Explain Java static members with examples.
No verified answer or solution is available for this question.
(a) With an example explain the use of Abstract classes in Java. (OR) (b) What is user defined package? How to create and import a user defined package? Explain with example.
No verified answer or solution is available for this question.
(a) Discuss about user defined exceptions in Java. Give suitable example. (OR) (b) How thread synchronization is managed in java. Write example code.
No verified answer or solution is available for this question.
(a) Write a Java program to read data from a file and to write data to a file. (OR) (b) Discuss about Generic classes and Generic methods in Java.
No verified answer or solution is available for this question.
(a) With an example code explain how the key events are handled using JAVAFX. (OR) (b) Write a Java program to illustrate the use of JAVAFX checkbox and choice box controls.
No verified answer or solution is available for this question.
(a) Design a class called Ship that has the following members: • Name of the ship-string • Year-the year of the ship built in integer • A constructor, get and set methods • to String that displays the name of the ship and year Extend a class CruiseShip from Ship with the following members: • Maximum number of passengers – integer • A constructor, get and set methods • To String method that overrides base class to display the name of the ship and number of passengers. Demonstrate the classes with ship array assigned with Ship and CruiseShip objects and calling the respective to String method. (OR) (b) A and B are any two players in a game which progresses by making alternate moves by the players. Assume the odd moves are played by the player A and the even moves are played by the player B. Define a class for generating the player move which implements runnable interface and ensures that the player is operated with lock. Implement using thread pool so that A and B will get only the alternate moves. The players can stop after making a total of 100 moves.
No verified answer or solution is available for this question.