How To Exam?

a knowledge trading engine...


University of Pune 2007 B.C.A Computer Application JAVA - Question Paper

Sunday, 21 April 2013 09:40Web



[3196]-604
B.C.A. (Semester-VI) Examination-2007
JAVA
Time: three Hours] [Max. marks: 80
Instructions:
(1) All ques. are compulsory.
(2) Figures to the right indicate full marks.

Q1) ans the following: (Any Four) [20]

(a) Why is Java known as Platform-neutral Language?
(b) Describe the Structure of Typical Java Program.
(c) What is Constructor? elaborate its special properties?
(d) Write the difference ranging from Method Overloading and Method Overriding?
(e) Explain various kinds of JDBC Drivers.

Q2) describe the following: (Any Five) [10]

(a) Final
(b) Abstract Class
(c) Instance Variable
(d) Layout Manager
(e) Thread
(f) AWT




Q3) discuss the following: [10]

(a) What is Synchronisation? When do we use it?
(b) Write a note on Vector and Hash Table.

Q4) Write Java programs for the followings?Any Six) [30]

(a) Write a program to display the subsequent O/P:
1
2 2
3 3 3
4 4 4

(b) Write a program to accept 2 numbers from user and obtain out LCM of numbers.

(c) Write a program to accepts five elements in an aaray and display them in descending order.

(d) Write a program which throws user described exception, if user entered no. is less than Zero.

(e) Write a program which accepts 2 strings using command line arguments and concatenates these strings without using standard methods.

(f) Write a JDBC program that inserts the subsequent details to teacher table, having structure t_no, t_name, salary

(g) Write a program to obtain out the sum of all integers greater than 100 and less than 200 that are divisible by 7.



Q5) Attempt following: [10]

(a) Which exception may be thrown if the provided code executed?
class excep2
{
public static void main (string args [])
{
try
{
int n1 = Integer.parseInt (args [0]);
int n2 = Integer.parseInt (args [1]);
int n3 = n1 + n2;
system.out.print\n (“sum is “ +n3);
}
catch (Arithmetic Exception ex)
{
system.out.print\n(“Arithmetic Ex.” +
ex.getMessage());
}
catch (Number Format Exception ex)
{
system.out.print\n(“Format Exception” +
ex.getMessage());
}
catch (Exception ex)
{
system.out.print\n(“Exception: “+ ex);
}
}
}

(b) Debug the provided code for displaying the contents of an array containing language names:
Class ArrayData
{
public static void main (String [] args)
{
String [] str Array = {“Java”, “V.B.”, “VC++”, “C”};
for (int i = 0; I < strArray.lenght(); i++)
System.out.print(StrArray[i]+ “,”);
}
}



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Pune 2007 B.C.A Computer Application JAVA - Question Paper