University Of Pune Question Paper
MMS/M.B.S. (Semester – II) Examination, 2012
203-C : Computer Specialization
OOD CONCEPT AND BASIC JAVA
2008 Pattern
Time : 3 Hours Max. Marks : 70
Note : 1) Question 1 is compulsory.
2) Solve any four from remaining.
1. Solve the following. Answer in 1 to 2 sentences. 10
1) What is null interface ?
2) What is method overriding ?
3) What are adapter classes ?
4) What is use of final keyword ?
5) What are wrapper classes ?
2. Write program to accept file name from user. Check if file exist or not. If exists,
count number of characters in file. Display contents of file and count of characters
in file. 15
3. Write application to create following threads :
a) To print sum of alternate natural numbers upto 1050
b) To print string in reverse order (accept string from user) 15
4. Write applet which accepts n as parameter and displays n rectangles. 15
5. Create class “Book” with attributes bookid, title, author, no-of-copies, price. Accept
details of 10 (ten) books in an array of objects and display accepted details. 15
6. Write notes on (any 3) : 15
a) String functions
b) Access modifiers
c) Thread synchronization
d) User defined exceptions.
–––––––––––––––––
MMS/M.B.S. (Semester – II) Examination, 2012
203-C : Computer Specialization
OOD CONCEPT AND BASIC JAVA
2008 Pattern
Time : 3 Hours Max. Marks : 70
Note : 1) Question 1 is compulsory.
2) Solve any four from remaining.
1. Solve the following. Answer in 1 to 2 sentences. 10
1) What is null interface ?
2) What is method overriding ?
3) What are adapter classes ?
4) What is use of final keyword ?
5) What are wrapper classes ?
2. Write program to accept file name from user. Check if file exist or not. If exists,
count number of characters in file. Display contents of file and count of characters
in file. 15
3. Write application to create following threads :
a) To print sum of alternate natural numbers upto 1050
b) To print string in reverse order (accept string from user) 15
4. Write applet which accepts n as parameter and displays n rectangles. 15
5. Create class “Book” with attributes bookid, title, author, no-of-copies, price. Accept
details of 10 (ten) books in an array of objects and display accepted details. 15
6. Write notes on (any 3) : 15
a) String functions
b) Access modifiers
c) Thread synchronization
d) User defined exceptions.
–––––––––––––––––
0 comments:
Pen down your valuable important comments below