You are on page 1of 2

Reg. No.

L34 S L4
FOUR YEAR B.TECH. DEGREE EXAMINATION _ APRIL 2015.
-

FOIIRTH SEMESTER EXAMINATION

COMPUTER SCIENCE AND ENGINEERING

JAVA PROGRAMMING (JP)

(scHEME

Time:

2013)

Hours

Mox' Marks: 7o

Note : Question No. 1 is compulsory and it must be answered first in Sequence at


one place only.

Answer any FOIIR from the remaining'


Question No. 1 carries 10 marks and remaining questions carry 15 marks each.

1. (a)
ft)
(c)
(d)
(e)
(f)
(g)
(h)
(i)
0

What is the difference between Throw and Throws?


List out the elasses of character stream.
What is the difference between Swing and Appiet?
List the tyPes of JDBC drivers.
What are the contents of a java package?
What is a CLASS?
List the uses of inheritance.
What is function over loading?
What is the use of interface?
Define thread.

2. (a)
(b)

Discuss about the features of Java.


Write a program in Java to count the no. of words in a text

3. (a)

Explain the following methods related to string with examples.

(r) concat( )
(ii) index of( )
(iii) last Index of( )
(iv) to string( ).
(b)

Explain the concepts of string

g>

flle.

(8)

(8)

buffer.

(7)

Turn Over

4.

5.

(a)

What is exception? Explain exception handling mechanism in Java with


(8)
an example program.

(b)

Explain the concept of multiple inheritance in Java.

(a)

Write an applet program to design a simple calculator with any two


arithmetic

6.

(7)

g)

operations

G)

What is an adapter class? What is the use of an adapter class? Write a


(8)
sample java program using mouse adapter class.

(a)

What is multi threading? Explain the life cycle of a thread with an


example

&)
7. (a)
(b)

program.

(7)

Defi.ne JDBC. What are the steps to be followed


connection?

in establishing a JDBC
(8)

Explain about JApplet, JFrame and JComponent with examples.

(e)

Explain trees and tables in swings.

(6)

134

14

You might also like