You are on page 1of 2

ffiffi.*.

'il=*
USN
\i l4!Tr\1:'
m:
'::'tt::t'{!
Sixth Semester B.E. Degree Examinafibn,
Proqramminq intava
Programming,indAVA
July/August 2022
t**n"
18C56s3

,N
-$u*.
d
Time: 3 hrs. =,,'1
r:i:lr{,
Marks: 1oo
Note: ,4zsper an! FIVE full question;i ihoosing ONE full questian fiom each module.
a; ' rr". !..r
.iil:;li

o
d
Module-t i::..::i.

a. Explain 3 OOP's principles. ., (06 Marks)


E
6
d
b. Explain the process of compiling and running the java..application with the example.
liqri-','it,, rJ'"t" (06 Marks)
O .:ir-. ii. I li .ii,!
(d
o c. nitive data types used in Java.
Discuss the various pri1g1ffi6 (08 Marks)
rs
bo--
!oR
a. How are affays dM*tO and initializ.a irlir.-nxplain with suitable examples. (10 Marks)
o b. Explain scopeand iifetime of variables with an example. (05 Marks)
-ll
.=r -€ c. Explain 4pt ic type promotion in expressions with rules and a demo program. (05 Marks)
.= 6l
€+
i: Oi]
tso :,:;:...::,.i1 ,'\MOdule-2 :riii,....."
Otr
a.
..i:.::::: ;.::;=:,t.1,-
What are different types of operatbB in Java? Explain fh
,.itt.:
' (10 Marks)

oz
b. Write a program to find big.gest,r0mong 3 numbers usinj temary operator. (05 Marks)
c. Differentiate between whiqp loop and do-while loop iii Java. ,,,-1.-"i.
-"' (05 Marks)
a:
6o

btc
a. write a java prograrn to perform ,i.pl.?*T;';;;r operation. . (05 Marks)
b. Discuss for - each loop with an example. . ;_ (05 Marks)
2€ c. Demonstrate the use of :
i) Continue statement in while loopi'- t ;,.i;r
ii

-u
'tro ii) Break statement in do while loop.. l;tl; .,
(10 Marks)

oX
o." "':r'l:'t':.,:l ,:::,':',',::,,,,.,.,,..,,t" Modulg-3 o.r,
a. Explain class with an example (05 Marks)
o: b. are constructors? Explain with an ex"aipp!s'. (05 Marks)
..*iWhat
c..'. Explain the followiq$ir'ild
qlE
' ?$
=!

i) this keywordn : " u

>.! ii) Garbage collection in Java


'-C
ii=
cb0
iii) finalizetJ,*'eihoO a" (10 Marks)
uo ,'
F> .r?
=d) i'r/ OR
o< a. What is inheritance? Discuss different types of inheritance with suitable example. (10 Marks)
-i
6i b. Explain method oveniding with an example. (05 Marks)

'o
o
c. Explain abstract class and abstract method with an example. (05 Marks)
z
E Module-4
a. ",."=,,
What is packa$etHbw to create and import package in java. Explain with an example.
.. (10 Marks)
b. What is,an iiiterface? Explain how to define and implement interface by taking suitable
(10 Marks)
'**f,;11;1i'' I of2
,i1:::.
-.i '=r...1

.,w
.r.::
18CS653

oR 's&h'

8 a. ^Wff%"
What is an exception? Explain the following : d'$rury
i) try *.+ i*#
ii) catch *#ffi
iii) throw 1,#

(12 Marks)
(08 Marks)

(10 Marks)

(10 Marks)

l0 (10 Marks)

(10 Marks)

2 of2

You might also like