Defining object oriented paradigm and multithreading


Question 1: a) Define Object Oriented Paradigm? Describe advantages of Object Oriented Programming.    

b) What is polymorphism? Explain advantages of polymorphism with the example.    

Question 2: a) Explain platform independence? Describe why java is secure and platform independent.    

b) Write a program in java to generate Fibonnaci Series.    

c) Write the advantage of Unicode.              

d) Explain the importance of PATH and CLASS PATH.    

Question 3: a) Define exception? Create the exception subclass named MyException to handle user generate exceptions in Java.

b) Define abstract class? What are advantages of using abstract class? Write the program in Java to describe abstract class and multilevel inheritance.

Question 4: Differentiate the following and support with the example:

• Final and static member

• Inheritance and Aggregation

• Abstract class and Interface

• String and String Buffer

Question 5: a) Name the classes in Java available for file handling? Write the program in Java to append content at the end of an already existing file.

b)  Describe the difference between checked and unchecked exceptions with example.    

Question 6: a) Explain multithreading? Describe the two ways of creating threads in Java programs. Also describe difference between notify() and notify All( ) methods.

b) What is need of Layout Manager? Explain different layouts available in Java.        

Question 7: a) What do you understand by the term Applet? Write the applet that prints "Lear Java it is useful" at present cursor position whenever the mouse left button is clicked.                  

b) Consider a class which stores the Bank account holder's name, account number, ATM card number, account balance and ATM PIN. Write the program to store data onto a disk file, except for account balance and ATM PIN. Use serialization and transient variables.

Question 8: a) Write Java program to set up JDBC and execute the following:

QL 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.

b) Explain Java Bean ? Describe its advantages?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Defining object oriented paradigm and multithreading
Reference No:- TGS02176

Expected delivery within 24 Hours