Master of Science (CS) (Third Semester) Examination, May/June 2019 Programming With Java
Master of Science (CS) (Third Semester) Examination, May/June 2019 Programming With Java
(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
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.
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)
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.
II/(Unit II)
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)
III/(Unit III)
3. (a) thread
/(Or)
IV/(Unit IV)
What is the difference between JAR, EAR and WAR file ? How to convert .java
file to .jar file ?
8226 3 P.T.O
/(Or)
Write a Java program to copy one file to another file with the help of
byte stream classes.
IV/(Unit IV)
What is the difference between Swing and AWT ? Why are Swing components
lightweight components ? Explain.
/(Or)
8226