Question
1: a)
What is Object Oriented Paradigm? Explain advantages of
Object
Oriented Programming. (5 Marks)
b)
What is polymorphism? Explain the advantages of polymorphism
with
an example. (5 Marks)
Question
2: a)
What is platform independence? Explain why java is secure
and
platform independent. (3 Marks)
b)
Write a program in java to generate Fibonnaci Series. (3 Marks)
c)
Explain the advantage of of Unicode. (2 Marks)
d)
Explain the significance of PATH and CLASS PATH. (2 Marks)
Question
3: a)
What is an exception? Create an exception subclass named
MyException
to handle user generate exceptions in Java. (5 Marks)
b)
What is abstract class? What are advantages of using
abstract
class? Write a program in Java to explain abstract
class
and multilevel inheritance. (5 Marks)
Question
4: Differentiate
the following and support with example: (10 Marks)
Final
and static member
Inheritance
and Aggregation
Abstract
class and Interface
String
and String Buffer
Question
5: a)
What are the classes in Java available for file handling?
Write
a program in Java to append content at the end of an
already
existing file. (5 Marks)
b) Explain the
difference between checked and unchecked
exceptions with example. (5 Marks)
Question 6: a) What is multithreading?
Explain the two ways of creating
threads in Java programs. Also explain difference between
notify() and notify All( ) methods. (5 Marks)
b) What is need of Layout Manager? Explain different layouts
available in Java. (5 Marks)
Question 7: a) What is an Applet? Write
an applet that prints "Lear Java it is
useful" at the current cursor position whenever the
mouse left
button is clicked. (5 Marks)
b) Consider a class that stores a Bank account holder's name,
account number, ATM card number, account balance and
ATM PIN. Write a program to store the data onto a disk file,
except for the account balance and ATM PIN. Use serialization
and transient variables. (5 Marks)
Question 8: a) Write a Java program to
set up JDBC and execute the following
SQL statement on a database table employee-t with the fields
emp-id, emp name, emp-department, empbasic
"SELECT * FROM employee-t where emp-basic < 10000. (7
Marks)
b) What is Java Bean ?
What are its advantages? (3 Marks)
Comments
Post a Comment