About Me

Java Programming 5th AM11 IT2301

Sponsored Ads:

Quick Links
University Papers University Syllabus Entrance Exam
PSU Papers Bank Papers Placement Papers
VTU Anna Univerity Syllabus Anna Univerity Papers
B.E./B.Tech. DEGREE EXAMINATION, APRIL/MAY 2011
Fifth Semester
Information Technology
IT 2301 - JAVA PROGRAMMING
(Regulation 2008)

University Papers | Syllabus | Entrance Exam | Govt & PSU Papers | Bank Papers

Programming Questions  |  Travel Tips | Mobile Review | Placement Papers

ANNA UNIVERSITY SYLLABUS: CLICK HERE

ANNA UNIVERSITY PAPERS: CLICK HERE

Download PDF File - Click Here
For more question paper of IT - CLICK HERE

PART A — (10 × 2 = 20 marks)

1. Give the properties of abstract classes and methods and write a suitable example.
2. Why does Java not support destructors and how does the finalize method help in garbage collection?
3. Write a declaration to convert the value ‘‘Programmer’’ in the string variable ‘convert’ to ‘‘programming’’.
4. Distinguish between static and dynamic binding.
5. How does the declaration of a local inner class differ from the declaration of an anonymous inner class?
6. Write a code to copy the contents of the file input.txt one byte at a time to output.txt using FileInputstream and FileOutputStream.
7. When do the following events occur?
(a) AdjustmentEvent
(b) ItemEvent
8. Write down the statements used to create a JFrame and a JButton and then add the JButton to the JFrame.
9. List any two advantages of type parameters.
10. When would you use the CountDownLatch synchronizers and Exchange Synchronizers?

PART B — (5 × 16 = 80 marks)

11. (a) (i) Write a program to find whether a number is a palindrome or not.(8)
(ii) Discuss the working and meaning of the ‘‘static’’ modifier with suitable examples. (8)
Or
(b) Explain in detail as to how inheritance and polymorphism are supported in Java with necessary examples.

12. (a) (i) Write a Java program to perform matrix multiplication using arrays. (8)
(ii) Write a java program to search for a number in the given array using binary search. (8)
Or
(b) Give a detailed explanation of packages in Java.

13. (a) What is reflection and how does it help to manipulate java code?
Or
(b) Consider a class person with attributes firstname and lastname. Write a java program to create and clone instances of the Person class.

14. (a) Write a program to create a calculator using swings with the four basic arithmetic operations : +, –, *, /.
Or
(b) Draw the exception hierarchy in java and explain with examples throwing and catching exceptions and the common exceptions.

15. (a) With suitable examples consider the number of restrictions to consider when working with java generics.
Or
(b) Write short notes on what threads are and the thread states and properties.

Post a Comment

0 Comments