Friday, December 18, 2015

OBJECT ORIENTED PROGRAMMING WITH JAVA (OOPJ),2010 Question Paper,P. G. D. C. A. (Semester - III),University Of Pune Question Paper

University Of Pune Question Paper
P. G. D. C. A. (Semester - III) Examination - 2010
OBJECT ORIENTED PROGRAMMING WITH JAVA (OOPJ)
(Old 2005 Pattern)
Time : 3 Hours] [Max. Marks : 80
Instructions :
(1) Question No. 1 is compulsory.
(2) Solve any four from the remaining.
Q.1) (A) What will be Output ? Justify your answer : [06]
(a) Class MyDemo
{
public static void main(string s[])
{
int x = 10, y = 15;
x = ((x < y) ? (y + x) : (y – x));
system.out.print\n (“x” + x);
}
}
(b) Which of the following is overloading method for
int sum (int x, int y) {} method.
(i) int sum (int x, int y, int z)
(ii) int sum (int x, int y)
(iii) float sum (int x, int y)
(iv) int sum (int x, int y, float z)
(c) Class MainDemo
{
Public static void main (string s[])
 {
boolean b = true;
system.out.print\n (“XXX”);
if(!b)
return;
system.out.print\n (“YYY”);
 }
 }
(B) Write short notes : (Any Two) [10]
(a) Access Modifiers
(b) Static Keyword
(c) Use of Final Keyword
Q.2) Accept E-mail from user and if @ symbol is not present then throw
user defined exception which is “InvalidSymbolException”. [16]
Q.3) Write a program to read content of file and replace ‘the’ word
with ‘other’. [16]
Q.4) Write threaded Application where first thread prints even numbers from
1 to 100 and other thread prints alternative characters from A to Z. [16]
Q.5) Book Rate Qty.
       JAVA 250
      DBMS 360
            VB 200
                  BILL
Design above Applet, if user selects books by clicking on checkbox
and writes quantity required. When bill button is clicked print bill
details with proper format. [16]
Q.6) Write abstract class staff with abstract method, calculate Salary( ) and
Instance Method Print Data (int no, string name).
Write Typist Class as sub-class of staff with speed as instance variable,
if speed less than 40, then salary 4000 else 5000.
Write main class to implement above classes. [16]
Share This
Previous Post
Next Post

B.E Civil Engineer Graduated from Government College of Engineering Tirunelveli in the year 2016. She has developed this website for the welfare of students community not only for students under Anna University Chennai, but for all universities located in India. That's why her website is named as www.IndianUniversityQuestionPapers.com . If you don't find any study materials that you are looking for, you may intimate her through contact page of this website to know her so that it will be useful for providing them as early as possible. You can also share your own study materials and it can be published in this website after verification and reviewing. Thank you!

0 comments:

Pen down your valuable important comments below

Search Everything Here