Java Programming May/June 2012 Anna university Question Paper
B.E/B.TECH. DEGREE EXAMINATION, MAY/JUNE2012
Fifth Semester
Information Technology
IT 2301/IT 51/10144 IT 501 –JAVA PROGRAMMING
(Regulation 2008)
Time: Three Hours Maximum Marks: 100 Marks
Answer ALL questions.
PART A-(10 X 2=20 marks)
1. Define the term class
2. What is finalize method?
3. What is abstract class?
4. What is dynamic binding?
5. Mention the necessity for import statements.
6. What is meant by frame window?
7. What is AWT?
8. What is an exception?
9. What is thread?
10. Write a java program for computing Fibonacci series.
PART B-(5 X 16 = 80 marks)
11. (a) (i) What is a constructor? Explain with an example in detail. (8)
(ii) Explain about static variables and static methods used in java, with examples. (8)
Or
(b) Discuss the following:
i) Inheritance.
ii) Polymorphism. (8+8)
12. (a)What are packages? Explain how you will import a package in Java. Give example. (8)
Or
(b) Explain the string handling features of Java in detail. (8)
13. (a) What is an interface? How it can be extended? Explain in detail with examples. (16)
Or
(b) i) How will you draw the following graphics in a window :
(1) Arcs
(2) Ellipses and Circles in java. (6)
ii) What is the use of Input stream class? Explain the methods defined by Input Stream Class. (10)
14. (a) Explain exception handling feature of java in detail. (16)
Or
(b) Explain the various event handling in detail. (16)
15. (a) Write the life cycle of a thread. Give an example of a java program to explain the use of thread priorities. (16)
Or
(b) Write notes on multi-threaded programming. (16)
Fifth Semester
Information Technology
IT 2301/IT 51/10144 IT 501 –JAVA PROGRAMMING
(Regulation 2008)
Time: Three Hours Maximum Marks: 100 Marks
Answer ALL questions.
PART A-(10 X 2=20 marks)
1. Define the term class
2. What is finalize method?
3. What is abstract class?
4. What is dynamic binding?
5. Mention the necessity for import statements.
6. What is meant by frame window?
7. What is AWT?
8. What is an exception?
9. What is thread?
10. Write a java program for computing Fibonacci series.
PART B-(5 X 16 = 80 marks)
11. (a) (i) What is a constructor? Explain with an example in detail. (8)
(ii) Explain about static variables and static methods used in java, with examples. (8)
Or
(b) Discuss the following:
i) Inheritance.
ii) Polymorphism. (8+8)
12. (a)What are packages? Explain how you will import a package in Java. Give example. (8)
Or
(b) Explain the string handling features of Java in detail. (8)
13. (a) What is an interface? How it can be extended? Explain in detail with examples. (16)
Or
(b) i) How will you draw the following graphics in a window :
(1) Arcs
(2) Ellipses and Circles in java. (6)
ii) What is the use of Input stream class? Explain the methods defined by Input Stream Class. (10)
14. (a) Explain exception handling feature of java in detail. (16)
Or
(b) Explain the various event handling in detail. (16)
15. (a) Write the life cycle of a thread. Give an example of a java program to explain the use of thread priorities. (16)
Or
(b) Write notes on multi-threaded programming. (16)