0% found this document useful (0 votes)
36 views

Programming in Java Jan 2018 (2015 Scheme)

Uploaded by

gagannag306
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)
36 views

Programming in Java Jan 2018 (2015 Scheme)

Uploaded by

gagannag306
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
You are on page 1/ 2

For More Question Papers Visit - www.pediawikiblog.

com

,~
l/ffiCS561
USN ./
.'. 0
(J~(;
. /' -~\
~,!!taSemester B.E. Degree Examination, Dec.2017/Ja~18
,./~\
'. \\\ v"
Programming in .Java r~O:..~' t r>. 'l
',>"'// \)IV""
1-::. \--- \y
- 7 r: .

m
• (I"'~ ; M ks: 80
Time: 3 hrs. V~--;) ''Max. ar s.
~\~ ~.
Note: Answer4)9r~IVE full questions, choosing one full questio.r~1Jl each module. .
.
<...1'
h ")
v::./~/., Module-l
f:~~/
_,/'..:,..;

co
.
1 a: DISCUSS three O~~\(~\ . 1es.
vr..S pnncip ((~ (06 Marks) "~f

b. Explain Java applicat!.9~~evelopment step and NM. , (f0& (06 Marks)


c. Explain different Ac6e~s/$pecifiers. {' ", I
(04 Marks)
.--;/,/,, {I' ::;

~'-)

g.
«'\\.\> 0
\') ,~---,
(~, OR ~'::0 \ .

2 ~: ~X:~:ii~~~~~~r:ga~:dl~~J!~~~;~~~I~i~:~~r:,le ~:!::::~

lo
c. Explain how array injava wor~~~"tlY than ci;/~. Write a java program to display
o 1 2 3 4 '; /
"/~/I/
r, ~.
.•....
_1,\ ....# •• ,

5 6 7 8 9 ~.ri I.f)~~
10
15
11 12
16 17
I3
18
14
19
/~.

'V

,~.
'F

()

ib
':);>/
~
"-,
(06 Marks)
ik
r.=._':1 (/ .r>.
""~ "0 1
('-_V (0)/
dule.:i-- .-
3 a. Explain the following operator ~~ example. «-7)
aw

i) Logical operator r": ..


d~ ----(,~~> I ~..--:)

ii) Bitwise operator : (' /) ,-::::?'\ (05 Marks)


b. With example explain aJ>.P'~i~'rnaryoperator. Write ~yrogram to find the largest of
three numbers using T¢:fatYP'perator. ..:/'/_). (06 Marks)
C. Explain for each ver(~~for loop write a program to diBp!~JD student data: Name and
di

USN. /?~<,••••••J \"'$(/5" (OSMarks)


: CI/" . \ v.:/,,,",,
i~",,\-·;r.// ,/ /
- \: -:-.
-; OR «-1';::\
e

'....::-
..., \J ~\.-)
4 a. Demonstrate tfte::~ of
* Continue ~ent in while loop
\~
»
.p

* Break s.t~\em¢ntin do while loop (~~,::~;) (06 Marks)


b. Write ~a;program to fmd the prime numbers form 1 to 100. '\5-<> (05 Marks)
C. Write~'ji(v~program to perform simple calculator operation. "':'1) ~)) (OSMarks)
w

, ...•../ \~:'.././--,
<..~ .., ~/ "'IJ
.I~,>,.J ) Module-3 ,\0..; 0 •
5 a....(~~h~t'arethe salient features of constructor? Write a java program to show these reat~s.
w

E ',\ <, ,' (65M~S)


o
Z b'::-_~¥,>plain
the following : ~':.;
i) Use of this keyword
~
w

o
Co ii) Garbage collection injava

iii) Finalize ( ) method. (06 Marks)
c. With a java program show how fmal keyword is used to prevent inheritance and overriding.
(OSMarks)

10f2

For More Question Papers Visit - www.pediawikiblog.com


For More Question Papers Visit - www.pediawikiblog.com

<";:- ')
~
/~~'> f",.,0·)
VI
(;;;,----0::; '/",'"<>
o 0
c- (, ~ (r-,.-,1~CS561
'\..,// -? r- '\ \..J;
Jr,···--
~/ \>~;
~~:;:J2
. !e-. c./!; "'. .

m
'> L v'/;
~ =1. OR c-; '/
6
a. Create a ~}Iass called S.tuden~ with the following details a~ \~<;;~i~les (USl'!, Name,
Branch, Ph~~mber). Write a Java program to create n stu~d~~.::9bject and prmt USN,

co
N~me Br?ncif@:~one number with s~itable messa~e. . ,-,~/~>';·-.
(06 Marks)
b. Differentiate ~~9'\C++ and Java with respect to mhenta~ee:.>Mentl0n the use of supper
class and this par~i~r in java with example. 1-:::'-'\:::::2,) (05 Marks)
c. What is Inner class? p~nstrate with an example. ..\.~ \~?
(05 Marks)

g.
\'~//
,,_.....'\.\ c-:-,-,.•'\
I'
"'\.'> <,:->
\~ ModuJe-4 r(.~ .
7 a. Define Interf~ce. Explaill' (~) to define imple"?~h ':~milassign variable in interface to

lo
perform "one mterface mulfIP1Ebmethod" . ~~~~,
(05 Marks)
b. Wh.at is the role of interface wI0~~e.lementin&~fiple inheritances in java? (OSMarks)
c. Wnte short note on : ~~/ J"..'-'

i) Importing package
") A
11
.
ccesses protection.
0',/-:"> \ (J o ,
"./f / /',(
" u;/'/: ;-
.r,

V
,) ib (06 Marks)
ik
~a>y;:,
8
a. Define Exception Demonstrate the w~ft>g~~)jed try block with an example. (06 Marks)
b. Write a program which contains ~~tho~c!!.. will throw IIlegalAccessException and
w
C. Explain the following:
~~ Java's built in Ex~el>ti@,!?-
:»)
use proper exception handles so<t~:~xception st~jd)be printed.
'=-([7>
\;(~.:;:>
(OSMarks)

. (~'7)
ia

u) Uncaught Exceptl9A~
(05 Marks)
1//);' .::~,s-.
~~
/~':-':/ //
c-:__.:c-.
«:'; Module-5 c:::~~)').
ed

9
a. What are Applets? ~xp'Ja'iIlthe different stages in the life cy~pt-~pplet.
b. Write a note: (c/»'\ \(:::~ (06 Marks)

i) Type W~er/ ('><


ii) Trans~~ volatile modifier (C)\:J
.p

(05 Marks)
c. Enlist the A~eryag. ,_-, ~
. (05 Marks)
~~
-,":::7
C":\
0~
_-.. J
w

10 Explafu'~~J10Wing with example OR


--- .•.
~tr· _
b'M's'?n
w

c., cl<mg strings


d. ~¥o ffying string
C:::-~erloading constructor.
«>
w

(16 M.arks)

*****

20f2

For More Question Papers Visit - www.pediawikiblog.com

You might also like