Roll No.................................
(101) 8226
Printed Pages—4] 3M.Sc.(CS)5
Master of Science (CS) (Third Semester)
Examination, May/June 2019
PROGRAMMING WITH JAVA
Duration : 3 /Max. Marks : 80
/Min. Pass Marks : 32
Instructions :
1. The question paper is divided in five units. Each unit carries an internal
choice.
2. Attempt one question from each unit. Thus attempt five questions in all.
3. All questions carry equal marks.
4. Assume suitable data wherever necessary.
5. English version should be deemed to be correct in case of any anomaly in
translation.
6. Candidate should write his/her Roll Number at the prescribed space on the
question paper.
8226 1 P.T.O
I/(Unit I)
1. (a) Java Applet applet, application
Applet
What do you mean by Java Applet ? How is an applet different from
application ? Discuss the life cycle of an applet.
(b) looping statements
What are various looping statements available in Java ? Discuss any one
with suitable example.
/(Or)
(a) operators
left shift right shift
Describe the various operators used in Java with their classification.
Explain left shift and right shift operators with suitable examples.
(b) Return, Break, Continue, Labeled Break a Labeled Continue
Differentiate return, break, continue, Labeled Break and Labeled
continue.
II/(Unit II)
2. (a) Interfaces Packages
How do Packages differ from Interfaces ? Explain it with a suitable example.
Write a program to calculate student marks statement.
(b) Static Class Static Method abstract class
Instance
What do you mean by class and static method ? Can we make an instance
of an abstarct class ? Justify your answer with an example.
8226
/(Or)
Explain the following :
(i) Abstract and Final Class
(ii) Inheritance and its types
(iii) Class and Objects
(iv) Constructor and Destructor.
III/(Unit III)
3. (a) thread
Explain the life cycle of the thread with suitable example.
(b) Exception exceptions
What is exception ? How many types of execptions are there in Java ?
/(Or)
(a) Thread Synchronization
What is Thread Synchronization ? Explain with example.
(b) multithreaded program Syntax
Explain different controls over multithreaded program in Java with
complete syntax.
IV/(Unit IV)
4. JAR, EAR WAR file .java file .jar file
What is the difference between JAR, EAR and WAR file ? How to convert .java
file to .jar file ?
8226 3 P.T.O
/(Or)
(a) Byte Stream Classes copy
Write a Java program to copy one file to another file with the help of
byte stream classes.
(b) Socket Programming
Explain Socket Programming and its uses in Java.
IV/(Unit IV)
5. Swing AWT Swing Components components
What is the difference between Swing and AWT ? Why are Swing components
lightweight components ? Explain.
/(Or)
(a) AWT Controls
Discuss AWT Controls with suitable examples in Java.
(b) Event Event handling
What is an Event ? Write its types and Event handling procedure.
8226