1 (a)
Write a Program in Java to find nCr and nPr
5 M
1 (b)
what are the apllications of wrapper classes? Explain.
5 M
1 (c)
Write an applet program to draw circle rectangle and line.
5 M
1 (d)
Write a detail note on system.arryacopy().
5 M
2 (a)
Assume that bank maintains two kinds of accounts for customers, one called as savings account and the other as current account. The savings accounts provides compound interest and withdrawal facilities but no cheque bbok facility. The current account provides cheque book facility but no interest. current account holders should also maintain a minimum balance and if the balance falls below this level, a services charge is imposed.
Class account stores customer name, account number, and the type of account include members functions :-
Accept deposite from a customer and update the balance. Display the balance. Compute and deposite interest Permit withdrawal and update balance. Check for minimum balance, impose penalty and update the balance.
Draw class diagram for above senario.
Class account stores customer name, account number, and the type of account include members functions :-
Draw class diagram for above senario.
8 M
2 (b)
For above problem statement, implement class account, current and saving account.
8 M
2 (c)
Exam association and aggregation with suitable example.
4 M
3 (a)
Write a program to display area of square and rectangle. Make use of interface to define templetes of methods to be there in the derive classes.
10 M
3 (b)
with the help of suitable example explain multithreading in terms of following :-
(i) Creating threads, extending the thread class.
(ii) Life-cycle of thead.
(i) Creating threads, extending the thread class.
(ii) Life-cycle of thead.
10 M
4 (a)
Write a detailed note on exception handling in terms of following:-
(i) Try-catch
(ii) Finally Keyword
(iii) Cathing multiple exception.
(iv) Throwing exception.
(i) Try-catch
(ii) Finally Keyword
(iii) Cathing multiple exception.
(iv) Throwing exception.
10 M
4 (b)
Write a java program to find out no. of uppercase and lowercase character, blank space and digits and special characters from string.
10 M
5 (a)
Write an interactive program to create a vector object and populate in with names of cities. Program should display and implement following menu choices :-
Add city : if city name already exists in the vector then programs should display appropriate message. Remove city : If city does not exists in vector then program should display appropriate message. Display all : should display contents of vector.
7 M
5 (b)
Compare and contrast overriding method and overloading method with suitable examples.
8 M
5 (c)
Draw a sequence diagram that show the interaction between caller, customer and credicard for the statement "Customer uses a credit card for doing the payment".
5 M
Write a short notes on (any four) :-
6 (a)
JVM
5 M
6 (b)
Abstract methods and calsses.
5 M
6 (c)
Method overloading
5 M
6 (d)
Package.
5 M
6 (e)
Static data, member and methods
5 M
6 (f)
Different between C++ and Java
5 M
More question papers from Object Oriented Programming Methodology