Professional Documents
Culture Documents
AK-l1{}
April -2018
B.C.A., Sem.-IV
CC-210 : Core Java
AK.t l0 I P.T.O.
Answer the following questions :
(i) Explain with Java code: "Displaying Array elements befbre and atter
sorting using suitable method of ,Arrays, Class".
(ii) List various wrapper classes and explain any two with an example.
kf Is "Creating your owtt Exception" possible in Java 'l If yes. erplain u.ith
your own Java code.
l4T Which are the lirnitations of Method ovemicling while creatipg der! ,-,-i
class(es) ?
(i) What are the characteristics of Abstract class ? Write Java code to explairr
its implernentation.
(ii) What sequence will be followed by constructors in multi-level inheritance'l
Write Java code to support your answer.
OR
Answer the following questions :
.$f How intertlces supporl the concept of multiple inherit;:;rce in Java '] With
suitable Java code, explain its implementation.
what is the unique feature of 'finally' block in cxceprron handling ? why it
is useful in Java'l
.,
AK-l10
4. (A) Answer the fbllowing questions : g
(i) Draw and explain Thread Life Cycle.
(ii) Draw Access protection Chaft and explain.
OR
Answer the tbllowing questions :
yf List various methods of Graphics class and explairr any trvo methocls with
suitable example.
5. Do as directed : 14
tU' Con-rplied Java code is executed by
-.-.- cornmand.
(a) javac (b) appletviewer
(c) java (d) None of the above
.t2) Single line comment can be added in java code using
(a) /t (b) r..... *t
(c) I @) Any of the above
,6) A keyword that ret'ers to parent class nrember is
_--.
(a) this (b) super
(c) pointer (d) None of the above
t4\ Operators like >,<,!:,:: are called as _--
(a) Relational operators (b) Temary operators
(c) Assignment Operators (d) Increment / decrement operators
System.out.print(count+s); count:coutit+l :
l.
I
AK-l10