Object Oriented Programming (OOP)
(3 Hours)
S.E./I.T./Sem- III GX-12209
[Total Marks : 80]
[Total Marks : 80]
N.B. : (1) Question No. 1 is compulsory.
(2) Attempt any three from remaining.
1. (a) | Write a Program in Java to find C and P | 5 |
(b) | What are the application of wrapper classes? Explain. | 5 |
(c) | Write an applet program to draw circle rectangle and line. | 5 |
(d) | Write a detail note on System . arraycopy (). | 5 |
2. (a) | Assume that a bank maintains two kinds of accounts for customer, one called | 8 |
as saving account and the other as current accounts. The saving account provides | ||
compound interest and withdrawal facilities but no cheque book facility. The | ||
current account provides cheque book facility but no interest. Current account | ||
holder should also maintain a minimum balance falls below | ||
this level, a service charged is imposed. | ||
Class account stores customer name, account number, and the type of account. | ||
Include member function:- | ||
| ||
| ||
| ||
| ||
| ||
Draw class diagram for above scenario. | ||
(b) | For above problem statement, implement class account, current account and saving account. | 8 |
(c) | Exam association and aggregation with suitable example. | 4 |
3. (a) | Write a program to display area of square and rectangle. Make use of interface to define templates of method to be there in the derive classes. | 10 |
(b) | With the help of suitable example explain multireading in terms of following :- | 10 |
(i) Create threads, extending the thread class. | ||
(ii) Life-cycle of thread. | ||
4. (a) | Write a detailed note on exception handling in terms of following :- | 10 |
(i) Try - catch. | ||
(ii) Finally keyword. | ||
(iii) Cathing multiple exception. | ||
(iv) Throwing exception. | ||
(b) | Write a java program to find out no. of uppercase and lowercase characters, blanks spaces and digits and special characters from string. | 10 |
5. (a) | Write an interactive program to create vector object and populate it with names of cities. Programs should display and implement following menu choices;- | 7 |
| ||
| ||
| ||
(b) | Compare and contrast overriding method and overloading method with suitable examples. | 8 |
(c) | Draw a sequence diagram that’s shows the interaction between caller, customer and credit card for the statement Customer uses a credit card for doing the payment. | 5 |
6. | Write a short notes on (any four) :- | 20 |
(a) JVM. | ||
(b) Abstract method of classes. | ||
(c) Method overloading . | ||
(d) Package. | ||
(e) Static data, member and method. | ||
(f) Difference between C++ and java. |
No comments:
Post a Comment