You are on page 1of 1

This question paper contains (01) no. of printed page.

JNIT
JAGANNATH GUPTA INSTITUTE OF ENGINEERING & TECHNOLOGY
JAIPUR
II-Mid Term Examination Session 2013-2014
B.Tech III -Year VI- Semester
Branch: CS-B/IT
Time: 1.00-2.30 P.M
Date: 03 May 14

Subject:JAVA
Subject Code: 6CS4/6IT4
Max. Marks: 20

Note: Attempt any four questions out of five questions.


Q1. Define package in java? What are the benefits of using package? Explain with suitable
example. Also describe the various levels of access protection available in packages
Q2. (a)Write all similarities and difference between interfaces and classes with example.
(b) Write a detail note on byte streams and character streams in Java.
Q3. Write detail note on exception handling in terms of the following:
(i) try-catch
(ii) finally keyword
(iii) catching multiple exceptions
(iv) the throws keyword and throwing exception
Q4.What is StringBuffer? Give the three ways of creating a string object? Write short notes
on the following string operation.
(i) CharAt()
(ii) toUppercase()
(iii) compareTo()
(iv) append()
(v) trim()
Q5. (a) Describe the concept of applet. What are various types of applets?
Describe the complete life cycle of an applet
(b) Explain the life cycle of thread class

You might also like