JULY-2023
FEB-2023
AUG-2022
MAR-2022
FEB-2021
JAN-2020
SEPT-2020
JAN-2019
JULY-2019
JAN-2018
JULY-2017
MODEL QUESTION PAPER
Module - 1 Introduction to Object oriented Concepts
Module - 2 Classes and objects
Module - 3 Inheritance and Interface
Module - 4 Packages and Exception
Module - 4 Threads and Enumeration
2a. Design a super class called Staff with details as StaffId, Name, Phone, Salary. Extend this class by writing three subclasses namely Teaching (domain, publications), Technical (skills), and Contract (period). Write a Java program to read and display at least 3 staff objects of all three categories.
2b. Write a Java class called Customer to store their name and date_of_birth. The date_of_birth format should be dd/mm/yyyy. Write methods to read customer data as <name, dd/mm/yyyy> and display as <name, dd, mm, yyyy> using StringTokenizer class considering the delimiter character as “/”.
3a. Write a Java program to read two integers a and b. Compute a/b and print, when b is not zero. Raise an exception when b is equal to zero.
3b. Write a Java program that implements a multi-thread application that has three threads. First thread generates a random integer for every 1 second; second thread computes the square of the number and prints; third thread will print the value of cube of the number.
Manual DAA Lab Manual