0 ratings0% found this document useful (0 votes) 18 views3 pagesTBC-303 Java Programing Pyq For BCA BSC - It
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
(6) TwC-3037rBI-30s
Write a Java Code to perform” the
following task [Search, Save and Update
‘are Buttons) :
* Write a JDBC code (Assume table
cemp(e ide name,_course,e_ address)
* Write'a code to save the data in
respective table.
* Write @ code to Update the record
(As per the oll no).
‘+ Write a code to search the record as
per the Search (Button mentioned
above). (Cos)
‘TBC-303/TBI-308 (29,
H Roll No.
TBC-303/TBI-305
B.C. AJB. SC. (IT)
(THIRD SEMESTER)
END SEMESTER
EXAMINATION, Jan., 2023
JAVA PROGRAMMING
+ Time : Three Hours
‘Maximum Marks :100
Note: (i) All questions are compulsory.
(ii) Answer any two sub-questions among
(@), (and (© in each main question.
(Gi) Total marks in each main question are
toventy,
(iv) Fach subquestion carries 10narks.
1. (@) Define Amays in Java, State its
classification, Write a Java programme to
accept 10, 45, 67, 45, 67 values in an
Array through user and print them. (CO1)
nO,(2) TBc-303rrBI-30s
(&) What is Interface in Java, Explain its
usage. Explain how interfaces are used for
{implementing multiple inkeitance in Java.
(con
(©) Write a Program in Java to calculate
Simple’ Interest. (SI : P*R*T/100). Here
accept the values for P, R, T, by user
through Scanner class. _ (CO)
2. (@) Describe packages in Java. State the
benefits of using packages in Fava. Write «
programme 16 create package shape and
add the eee (as given below) in the
(€or
/ Tnterface = Test_|
‘Area Gt int) |
( Class Rectang
[ea Git, ia bY |
@ "The above package must contain
interfie Test and Class Rectangle.
(3) THC s0s/TBE-305
+ Also, write a code forthe following
‘0 To show the inheritance
between Test and Rectangle
6 Write a code for Area () method
(©) Ilustrate the usage of throw and throws by
using suitable example. (C02)
(© Define Exceptions in Java, Write @ Java
cade to show the implementation of Aray-
IndexOutofBoundException and
‘AsithmeticException. (cor)
3. (@) Define Multithreading in Java ? Explain
life cycle of thread ? State the programme
which shows the difference between
‘Runnable and Thread class. (C03)
(b) Explain collections in Java, Write a
programme to insert following values
G, 6, 7,8, 4, 5) through ArrayList Class
‘Also state the difference while, adding
these contents through simple array or by
using array list class ? (C03)
(©) Write a program to create a file, which
stores information about (roll, name,
address), All the information is provided
by the user during run time. (C03)
210.(4) TEc-sasrrar-s0s
4. (@) Define Sockets in Java ? Write a 9,
programe o design the cht apletion. © Muliply: Buton to mutply two
(C04) ‘numbers and display the result
(®) Define Swing in teva ? Explain any five © Divide : Button to divide two
Java components associated with Swing HM a iy ue
iaiag sats onal
hii m SS 5. (@ Explain Servlet Show the life eyele of
Servlet and explain some commonly used
rethods of Servlet. (Cos)
() Defivie ISP 2 Write some merits of JSP in
comparison to servlets ? Write a JSP
" programme to accept two numbers and
‘Add Sub Multiply Divide
In above code Add/Sub/Multply and print greater number. (cos)
Divide are the button(s). Now perform the ©
following task by using AppleySwing to Roll el
esign the above application. (CO#) as i eet
+ Write.» code by using Adapter or ies: fee]
Interface for the following : ewes}
© Add : Button to add two numbers Baden [Ss
and display the result
‘© Sub : Button to subtract two eS wae
numbers and display the result
PLO.