Reg. No.
U/1221/11-17/37521
PROGRAMMING IN JAVA
Time : Three hours Maximum : 100 marks
SECTION A — (10 × 2 = 20 marks)
Answer ALL the questions.
1. What are the various data types supported by Java?
2. Define JVM.
3. List the wrapper classes for converting simple types.
4. How do you compute the length of array?
5. What are Java API packages?
6. How to block a thread? Give an example.
7. Define character stream class.
8. What is meant by Remote Applet?
9. Define proxy server.
10. What is TCP/IP?
SECTION B — (5 7 = 35 marks)
Answer ALL the questions with internal choice.
11. (a) Discuss briefly on: Java Tokens.
Or
(b) Write a Java program to demonstrate the use
of switch statement.
12. (a) Illustrate different types of arrays with example.
Or
(b) Explain the different access modifiers available
in Java.
13. (a) Write a Java program for creating threads
using the Thread class.
Or
(b) Discuss about Defining and extending
Interfaces with examples.
14. (a) Write short notes on: Applet life cycle.
Or
(b) Discus briefly the syntax of Exception Handling
Code.
15. (a) Write about working with Graphics with
examples.
Or
(b) Discuss briefly about any two AWT controls.
SECTION C — (3 15 = 45 marks)
Answer ALL the questions.
Qn. No. 16 is a Compulsory question.
16. Discuss about while and do-while statement in detail.
2 U/1221/11-17/37521
17. (a) Explain about method overloading with suitable
example.
Or
(b) Explain about creating and accessing the
package with example.
18. (a) Write a Java program to read characters from
the console using Buffered Reader.
Or
(b) Discuss about Menus and Menu bars in detail.
———————
3 U/1221/11-17/37521