B.Sc Computer Science Question Paper

Kerala University

B.Sc Computer Science

Programming in java Question paper

Fourth Semester Bsc.(Computer Science) Degree Examination, May 2010


(2004 Scheme)



Answer any ten questions. Each question carries 3 marks.

A1. List the major differences between C and JAVA?

A2. State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declare items qualified by these modifiers?

A3. What do you mean by polimorphism, inheritance, encapsulation and dynamic binding?

A4. What is the main difference between an Array list and a Vector? What is the main difference between Hashmap and Hash table?

A5. When is a method said to be overloaded and when is a method said to be overridden? Explain?

A6. What's the difference between the methods sleep ( ) and wait ( ) ?

A7. Write short notes on: Java data types and briefly explain premitive data types in Java?

A8. What is the output displayed by the following program? Explain?

class Question
public static void main(String args[ ]){
String s1="ab";
String s2="abcd";
String s3="cd";
String s4=s1+s3;

A9. What is the difference between the applet and an application?

A10. Write an applet to draw a circle?

A11. What is the difference between AWT and Swing?

A12. What is the difference between final, finally and finalize ( ) in Java?


Answer any five questions. Each question carries 6 marks.

B1. Explain about JDBC drivers and illustrate the database programming in Java using JDBC?

B2. Compare and contrast about the abstract classes and interfaces. Why are abstract methods not to be declared as static? Explain with example?

B3. Write a program to find the number of and sum of all integers greate than 100 and less than 200 that are divisible by 7?

B4. Explain Java bean programming, bring out its relevance?

B5. Explain in detail about the exception heirarchy with the various handling features?

B6. Explain Outer and Inner classes (or Nested classes) in Java. When will you use an Inner class?

B7. Explain object serialization and why we used the transient keyword?


Answer any one question. It carries 15 marks.

C1. Write a Java program for the preperation of Bio-data of a person using applet?

C2. Write a Java program to copying bytes from one file to another?

Post a Comment