Friday, December 18, 2015

BASIC JAVA,University Of Pune Question Paper,P. G. D. C. A. (Semester - II),2010 Question Paper,

University Of Pune Question Paper
P. G. D. C. A. (Semester - II) Examination - 2010
(New 2008 Pattern)
Time : 3 Hours] [Max. Marks : 70
Instructions :
(1) Question No. 1 is compulsory.
(2) Solve any four from the remaining.
Q.1) (A) Solve the following : [06]
(a) Select true statements :
(i) Object of interface can be created using new key
(ii) All variables in interface are static and public.
(iii) In interface method implementation of any of the
methods can be declared.
(iv) All methods in interface are abstract.
(b) Select true statements :
(i) Main( ) method can be overloaded.
(ii) Constructor returns nothing.
(iii) New key word is used to call constructor.
(iv) Constructor can be declared as private.
(c) Select true statements :
(i) Overloaded methods have same signature.
(ii) Overridden methods have same signature.
(iii) Overloaded methods are declared in same class.
(iv) Overridden methods are declared in same class.
(B) Write short notes : (Any Two) [08]
(a) Thread Life Cycle
(b) Wrapper Classes
(c) Vector
(d) Data types in Java
Q.2) Create Animal as an abstract class with eat( ), grow( ) as abstract
methods. Create abstract class Bird as subclass of Animal with fly( )
as abstract method. Then create concrete classes Parrot, Sparrow
which are Birds. [14]
Q.3) Write an awt application which will have a list, a text field and a
button with caption ‘Add’. When Add button is clicked, contents of
text field should be added to list. [14]
Q.4) Write a threaded application which will add 1 to the caption of button
after every second. Initially Button has caption “1”. [14]
Q.5) Write an application which will accept a number from command line.
If the given number is odd number, then throw “oddNumber” user
defined exception. [14]
Q.6) Write an application which will accept a file name using command
line. Then show odd positioned lines of that file. Handle exceptions. [14]
Share This
Previous Post
Next Post

Pellentesque vitae lectus in mauris sollicitudin ornare sit amet eget ligula. Donec pharetra, arcu eu consectetur semper, est nulla sodales risus, vel efficitur orci justo quis tellus. Phasellus sit amet est pharetra


Pen down your valuable important comments below