Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

T

SeatNo.r 95O
ZC.T22
April-2014
B.C.A., Sem.-fV
Cc.zrc CORE JAVA
Tine : 3 HoursJ
[Max. Marks : 70

1. (A) Explain the following renns :


I
, (1) Bytecode U
ts\
h

(2) Type casting


(3) Static Keyword

ir
(4) Polymorphism
OR

ls
Explain the following terms :

(1) Wrapper class


(2) Constant
(3) Finalizs Function
ea
--'<.. _ JA,*S. wirch Keyword
--'*-i*^:!

(B) Explain the characteristics of Java language.


_q
R
OR b
<-J
Explain Java architecture with figure.
G

J (A) Answer the following questions :


I
(1) List Methods of graphical dialog boxes of Joprionpane.
(2) Differentiate between Method vs. Constructor. 1
@

(3) Differentiate between Applet vs. Application.


(4) How StringBuffer is betrer than String ?
-OR./
Answer the following nuard6* ,

(1) Explain Logical operators.


(2) Differentiate between equals vs. (- =;.
(3) Differentiate between Abstract vs. Final.
(4) Explain Java comments.
zc-ttz P.T.0.

www.Realsir.in Instagram : @GRealsir


f
(B) write short note on Looping statements with examples.
OR
write short note on different types of Java arrays with exampres.

3. (A) Answer the following questions :

(1) Explain different states of rhread rife cycre with figure. -g


(2) what is package ? what are their types ? why we need package ? Explain
6
with example.
OR
Answerlhe following questions : _-

(1) what is interface ? what *) ir, characteristics ? why we need it ? Give


example.
(2) 'whT is exception ? what are their rypes ? Explain exception handling

ir
mechanism with example. ,

ls
(B) Describe following functions :

(1) drawReco
(2) showStatusQ +
(3) fillPolysonQ
ea
OR
Describe foiloyllg j$q&!q_:_ -_-.

ffl Ot"*Stri"gO
R
(2) join0
(3) sleep0
G

4. (A) Do as directed:
8
(1) Explain Thread priorities. ----r
q
(2) Give example of creating owned checked exception
@

(3) Define keywords : (1) Try (Z) Carch


(4) Applet class hierarchy
OR
Do as directed:
(1)" List any five anributes of <AppLET> tag.
(2) Identify functions: gerDocumentBase0 and getcodeBase0.
(3) ArithmeticException class hierarchy
(4) What do you mean by abstract functions ?
zc-122

www.Realsir.in Instagram : @GRealsir


(B) Answer the following questions :
--o.-^.:_
I
(1) What is inheritance ? What is "extends', keyword does ? List advanru*", offi
using Inheritance.
(2) What are the access modifiers in Java language ? What do you mean by
default modifier ?
OR
Answer the following questions :

(1) What is interface ? what is "implements" keyword does ? List advantages of


using Interface.
(2) Explain different functions of Applet life cycle. 4

Fill in the blanks : t4


{9 Th" command to execute a compiled Java application is
(a) exec (c) appletviewer

ir
Cb) javac (d) java * ':,'
X2l An instance of class is a(n)
(a) Method (c)

ls
Object
(b) Constructor (d) Bytecode
(l! fne value 983.47 can be held by a variable of type
V (a) double (c) int
ea
.Q} float (d) All of above
G) llnt Z=97 >> 3. The value of Zis
(a) 94 (c) 13
(b) 7e Q) t2
R
(5) To convert "97'7" into integer value, function is used.
(a)j tolnteger0 (c) parselnt0
g- parselntegerO (d) tolntValue0
G

6X The super keyword references


(a) To Local class (clWfo Child class
($
@

To Parent class (d) To Object class


To count elements in array, is used.
L9^
(a) Capacity Length
(b) ..{9-
Size (d) Elements
,\/(8)/ valid declaration of six boolean elements array
a
boolean b[] = new . (c) boolean b = new
Ky
boolean[6] boolean[6]
-is
(b) boolean b[6] (d) boolean [] b = new
boolean(6)
zc-tu2 3 P.T.O.

www.Realsir.in Instagram : @GRealsir


(9) block handles the ttrrown exception.
(a) Finally (c) Throw
(b) Catch (d) Throws
The code within a finaUy br.trck esecures when
SP fhe try biock
(a) trdentifies one or more exeeption
(b) Does not identiff any exceprion
{c) Identify any runtime exceptions
Jd) A.ll of above
,t{11) Abstract class does not have
,1g$_ Insranriarb Object (c) Child elass
(b) Parent class (d) Constructars
{p} AThread is created by implemenring .-. interface.
&_ Runnable (c) Throwable
(b) fhread

ir
Fl ThreadRunner
ktf) fo draw rectangle using Graphies in Applet,
(a) Java.net (c) Java.util

ls
, ? {b) Juuu.applet (d) Java.awr
Vt+l To draw circle in applet, function is used.
(*)-drawOval0 (c) drawCircle{)
(b)
ea
drawRoundRectangle$ (d) drawEelipse$
R
G
@

zc.t2L

www.Realsir.in Instagram : @GRealsir

You might also like