0% found this document useful (0 votes)
52 views2 pages

Dec-Jan2024 22

The document outlines a series of examination questions for a Third Semester B.E./B.Tech. Degree Exam, focusing on Java programming concepts. Topics include data types, operators, garbage collection, method overloading, inheritance, exception handling, and multithreading. Each question requires theoretical explanations and practical Java programming tasks.

Uploaded by

Hemanth C
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views2 pages

Dec-Jan2024 22

The document outlines a series of examination questions for a Third Semester B.E./B.Tech. Degree Exam, focusing on Java programming concepts. Topics include data types, operators, garbage collection, method overloading, inheritance, exception handling, and multithreading. Each question requires theoretical explanations and practical Java programming tasks.

Uploaded by

Hemanth C
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

USN BC5306A

Third Semester B.E.lB.Tech. Degree Examina

Modulelsl' M L C
Q.1 a. Discuss the different data types suffi,ted by Java along with,,.the'default 8 L2 col
values and literals.

b. Develop alava program to cCI#ffin*I-FCelsius temperature to Fiilfriinheit. 6 L3 co2


c. Justify the statement "Co,,ppjlti:5nce and run anywhere" in'Iava. 6 L2 col
OR
Q.2 a. List the various ope6to?s supported by Java. Illuiftdie the working of >> 8 L2 col
and >>> operators':wiih an example. "4
i..

b. Develop a Jav,q*iirogram to add two "i{i#ices using command line 10 L3 co2


argument..r._.r:,r {,:

c. Explainthtsintax of declaration of?D..arrays in Java. 2 L2 co1


Mud$te - 2
Q.3 a. Eiaitiifie Java Garbage colldsrioii mechanism by '&li:'S"sifying the 3 6 L2 col
generations of Java heap.

b. Develop a Java program-tci.find area of rectangle;-iiea of circle and area of 10 L3 co2


triangle using methodoverloading concept. Call these methods from main
method with suitable inputs.
c. Interpret the general form of a class with.bP^.niile. ,!..:.:a+:.i.;,,
4 L2 co2
ofi[sh "'

Q.4 a. Outline the fdfls\ving keywords wf 'tn xample 6 L2 coz


(i) this
(il) static
b 10 L3 co2

bnn lnterpret with aitd*ample, types of ponstiuctions. 4 L2 co2


ffiffile-3
Q.s il. lllustrate,:,ithe i$age of super kEfiiroid in Java with suitable example. Also 10 L2 co3
explain the't$namic method djspatch.
b. Build a Java program to,.ei',.eate an interface Resizable with method resize 10 L3 co3
(int radius) that allow,., ,object to be resized. Create a class circle that
implements resizable inteiface and implements the restze method.
OR
Q.6 a. Compare and. co ast method overloading and method overriding with 8 L2 co2
suitable exarltptiF.
I bf2
BC5306A

b. rent types of inheritance i1r::'Iffi' 4 L2 co3


named 'Shape'' e..f%tl3 sub classes 8 L3 co3
c.
namely circle, triangle and square ; each class has 2,,.+&ethdds named draw
( and erase ( ). Demonstrate polymorphism cqniffis
) by developing
suitable methods and main ,, T."
.'
program. '.
Module-4 'n-$
a. cess protedffi availab le for packa geqa,, nl!, 10 L2 co4
Q.7
their implications with suitable examples. -

b. tion to excePtion' 10 L3 co4


'E Y,an
where u p.rron tries to withdraw"l$e'.,H ount even though he/;.119,}ras lesser
than minimum balance t"."r*Fj.
,;.11"'H.1,IQp

a. andling mechanism$rovided in Java 10 L2 co4


Q.8
along with syntax and e&miflle. .,lqi,+
a package "balaksm'containing Account 10 L3 co4
b. @ireate
class with displplpa{ffie ( ) method and impo,s tliis package in another
program to access method of Account Class.
Ir tr,todute ;.5;:"','
a. e3fwtrYs of creating a thr11l 6 L2 cos
Q.e
"
between threads in Java? Explain 6 L2 co5
b.
*,6tj"ii,"pt". *ff;fl ."Sli,-,i'

c. ic conversiol..o{yfapper class ty.pe 8 L3 co5


into corresponding primitive tiile that demonstrates unboxing'
OR
Q.10 t. @5rs supported in lrua;'* 6 L2 cos
- + a;:'

b. Explain Au that occu#tin d&pressions and 6 L2 co5


c. 8 L3 cos

t"
thread *nd created child threadflq*executed
,rikn, W i'
J.****

.1r..
.

...,,,'",t1=""
'ilrr ,

-,!

..,,.urd*ik,

:.:"
r11..

*^*ll;,
ra' \r'
,t -- 'ia

.!:ii:i.;Sfffi
2 of2

.,**ii*,
r*rPi*'.'

You might also like