0% found this document useful (0 votes)
80 views4 pages

Java Programming Exam Questions 2019

Uploaded by

veberem546
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)
80 views4 pages

Java Programming Exam Questions 2019

Uploaded by

veberem546
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

9364

m
No. of Printed Pages.: 4 1MCS-0241

co
MCA (Revised) / BCA (Revised)

Term End Examination, 2019

.
-

uru
MCS-024 : OBJECT ORIENTED TECHNOLOGIES
AND JAVA PROGRAMMING

Time : 3 Hours]
ntG [Maximum Marks : 100
(Weightage 75%)
me
Note : Question no. 1 is compulsory and carries 40 marks.
Attempt any three questions from the rest.
ign

1. (a) How String Buffer differs from String ? Write a


program in Java, which takes your name as input
and print it in upper case.
ss

[5]

(b) How does Java handle events ? Write a program


UA

in Java to capture an event generated by


keyboard.
[5]
NO

(c) What are the uses of "this" keyword in Java ?


Explain with the help of an example. What is an
IG

applet ?
[5]

MCS-024/9500
m
Write a program to generate a circle in an
(d)

co
[5]
applet ?

What do you understand by session tracking in


(e)

.
uru
Java ? Discuss any technique, used for session
[5]
tracking.

Differentiate between superclass and

ntG
(f)
subclass. Write a program in Java to show the

concept of reusability. [51


me
What is exception in Java ? How exception
(g)
handling is performed, demonstrate with an

example ? [51
ign

(h) Explain constructor overloading with suitable

example. [5]
ss

What is checked exception in java ? How it is


2. (a)
UA

different from unchecked exception ? Explain

briefly. [5]
NO

(b) Write a Java program to find whether a given


element is present in a integer array of size ten
[51
IG

of not. -

(2)
m
(c) What is a layout manager ? Discuss the Flow

co
layout and grid layout, give suitable example for
each. [1 0]

.
uru
(a) Briefly explain the role of following classes in Java
Network programming : [5]

(I) Socket

(ii) ntG
Datagram Packet

(b) What is the difference between a process and a


me
thread ? Mention any three methods of thread
class and describe them briefly. [8]
ign

(c) What is an event ? What are components of an


event? Differentiate between semantic event and
ss

low-level event. [7]

(a) Write a Java program to create shape class.


UA

Overload method area ( ) to calculate area of


circle and rectangle. Define appropriate
NO

constructors in the program. [6]

(b) What are Input stream and output stream classes


IG

in java ? List and explain any two methods of each


class. [5]
MCS-024/9500 ( 3) [P.T.O.]
m
(c) Explain how garbage collection takes place in

Java, also list advantages of garbage collection.

co
[4]

.
What is an interface ? Write a java program to

uru
(d)
show, how a class implements two interface.[5]

5. Write short notes on the following : [20]

ntG
Java Beams and its advantages

(ii) Class and object


me
(iii) Applet Architecture
ign

(iv) Access specifiers

(v) Bitwise operators in java


ss

x
UA
NO
IG

MCS-024/9500 (4)

You might also like