University Of Pune Question Paper
M.M.S./M.B.S. (Semester – II) Examination, 2010
203 C : OOP CONCEPTS AND BASIC JAVA
Computer Specialization
(2005 Pattern) (Old)
Time : 3 Hours Max. Marks : 60
Note : 1) Question 1 is compulsory.
2) Solve any three from remaining.
3) Figures to right indicate full marks.
1. Solve the following : 15
a) Trace the output
class Test{static boolean flag;
public static void main(String args[]){
if ( flag )
{ System.out.println(flag);
}
}
}
b) class Q1b{
public static void main[String ka[]){
while(false){
System.out.println(''Great");
}
}
}
c) What is thread synchronization ?
d) How to find attributes of a file ?
e) How applet is called from a HTML file ? P.T.O.
2. a) Accept details of 50 items, like itemcode(string), description, quantity available,
rate. Fire exception if itemcode is less than 5 characters, quantity and rate is
zero or negative. 10
b) Write an anonymous class to close the window. 5
3. a) Accept name of the two files on command line swap the contents of files. 10
b) Write program, which will show the life cycle of an applet. 5
4. a) Write applet program to accept details of employee using appropriate GUI.
Take one command button to display the accepted details in a label pasted to
panel. 8
b) Create an application to display scrolling banner. (Do not use Applet). 7
5. Write notes on (any three) : 15
a) Differentiate between method overloading and method overriding.
b) Differentiate between class and interface.
c) Justify that “Java is Object oriented Language”.
d) Write note on final, finally, finalize.
–––––––––––––––––
M.M.S./M.B.S. (Semester – II) Examination, 2010
203 C : OOP CONCEPTS AND BASIC JAVA
Computer Specialization
(2005 Pattern) (Old)
Time : 3 Hours Max. Marks : 60
Note : 1) Question 1 is compulsory.
2) Solve any three from remaining.
3) Figures to right indicate full marks.
1. Solve the following : 15
a) Trace the output
class Test{static boolean flag;
public static void main(String args[]){
if ( flag )
{ System.out.println(flag);
}
}
}
b) class Q1b{
public static void main[String ka[]){
while(false){
System.out.println(''Great");
}
}
}
c) What is thread synchronization ?
d) How to find attributes of a file ?
e) How applet is called from a HTML file ? P.T.O.
2. a) Accept details of 50 items, like itemcode(string), description, quantity available,
rate. Fire exception if itemcode is less than 5 characters, quantity and rate is
zero or negative. 10
b) Write an anonymous class to close the window. 5
3. a) Accept name of the two files on command line swap the contents of files. 10
b) Write program, which will show the life cycle of an applet. 5
4. a) Write applet program to accept details of employee using appropriate GUI.
Take one command button to display the accepted details in a label pasted to
panel. 8
b) Create an application to display scrolling banner. (Do not use Applet). 7
5. Write notes on (any three) : 15
a) Differentiate between method overloading and method overriding.
b) Differentiate between class and interface.
c) Justify that “Java is Object oriented Language”.
d) Write note on final, finally, finalize.
–––––––––––––––––
0 comments:
Pen down your valuable important comments below