2
IT – Nov – Dec 2014 Q.1 (a) “Java is not fully object oriented language”. Justify this statement. (b) Describe various features of Java in brief. (c) Explain Garbage collection with an example. (d) List out difference between Java and C++. Q.2 (a) Define Shallow and Deep cloning. (b) Explain Accessor and Mutator method with an example. (c) Write a program for following : Define a class image having parameter name & method area. Inherit this class in 2 different classes square & rectangle which overrides method area to calculate & print area of square & rectangle. Take necessary assumptions for taking input values as input. Assumptions taken should be clearly specified at the beginning of the program. (d) Define packages & interfaces. How to import a package, explain in detail. Q.3 (a) Debug the following program : class Frr { public static void main(String arg[]) { int a; int b; Scanner S = new Scanner(); a = S.nextInt(); b = S.nextInt(); try() { System.out.println(a/b); } catch() { } } } (b) Explain exception handling. Write down functionalities of try, catch & finally block. (c) Explain String class. List & explain 7 String class function. (d) List out difference between checked and unchecked exception. Q.4 (a) Can a thread be started twice? Explain. (b) Draw & explain thread life cycle. (c) Write a program to demonstrate thread synchronization. (d) Explain file handling in Java. Q.5 (a) Write full form of following abbreviations : (i) JDBC (ii) ODBC (iii) DDL (iv) DML (b) Explain Applet & it’s application. Draw & explain Applet life cycle. (c) Explain Database connectivity in Java. List out various JDBC drivers with its details in brief. (d) Write short notes on : (i) Event driven programming

it nov dec 2014

Embed Size (px)

DESCRIPTION

java paper csvtu syllabus

Citation preview

IT Nov Dec 2014

Q.1(a)Java is not fully object oriented language. Justify this statement.(b)Describe various features of Java in brief.(c)Explain Garbage collection with an example.(d)List out difference between Java and C++.Q.2(a)Define Shallow and Deep cloning.(b)Explain Accessor and Mutator method with an example.(c)Write a program for following :Define a class image having parameter name & method area. Inherit this class in 2 different classes square & rectangle which overrides method area to calculate & print area of square & rectangle. Take necessary assumptions for taking input values as input. Assumptions taken should be clearly specified at the beginning of the program.(d)Define packages & interfaces. How to import a package, explain in detail.Q.3(a)Debug the following program :class Frr{public static void main(String arg[]){int a;int b;Scanner S = new Scanner();a = S.nextInt();b = S.nextInt();try(){System.out.println(a/b);}catch(){}}}(b)Explain exception handling. Write down functionalities of try, catch & finally block.(c)Explain String class. List & explain 7 String class function.(d)List out difference between checked and unchecked exception.Q.4(a)Can a thread be started twice? Explain.(b)Draw & explain thread life cycle.(c)Write a program to demonstrate thread synchronization.(d)Explain file handling in Java.Q.5(a)Write full form of following abbreviations :(i)JDBC(ii)ODBC(iii)DDL(iv)DML(b)Explain Applet & its application. Draw & explain Applet life cycle.(c)Explain Database connectivity in Java. List out various JDBC drivers with its details in brief.(d)Write short notes on :(i)Event driven programming(ii)Swing.