University of Madras
Chepauk, Chennai - 600 005.
Programming in Java
Chepauk, Chennai - 600 005.
Programming in Java
Month & Year of Examination: Nov - 2009
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 3 = 30 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1. Why Java known as platform neutral language?
2. List the basic data types used in Java. Give example.
3. What is type casting? Why is it required in programming?
4. Distinguish while and do statement in Java.
5. What is class? How does it accomplish data hiding?
6. How is the method defined?
7. What is overloading? Explain.
8. What are the application of wrapper classes?
9. What is an interface?
10. What is a package?
11. How do we define a try block?
12. What is thread?
2. List the basic data types used in Java. Give example.
3. What is type casting? Why is it required in programming?
4. Distinguish while and do statement in Java.
5. What is class? How does it accomplish data hiding?
6. How is the method defined?
7. What is overloading? Explain.
8. What are the application of wrapper classes?
9. What is an interface?
10. What is a package?
11. How do we define a try block?
12. What is thread?
Part - B (5 * 6 = 30 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13. Briefly discuss the Java operators.
14. Distinguish while and do statement in Java with example.
15. Describe different forms of inheritance with example.
16. Compare and contrast overloading and overriding methods.
17. Describe the complete life cycle of a thread.
18. What are input and output streams? Explain them with illustrations.
19. Describe the function of the 'file' class.
14. Distinguish while and do statement in Java with example.
15. Describe different forms of inheritance with example.
16. Compare and contrast overloading and overriding methods.
17. Describe the complete life cycle of a thread.
18. What are input and output streams? Explain them with illustrations.
19. Describe the function of the 'file' class.
Part - C (4 * 10 = 40 Marks)
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
20.Write a Java program which will read a text and count all occurrences of a particular word.
21.What is the difference between multiprocessing and multithreading? What is to be done to implement these in
a program.
22.Explain applet life cycle with state transition diagram.
23.Explain how exception handling mechanism can be used for debugging a program.
24.Write a Java program that will count the number of characters in a file.
25.Write short notes on:
(a) Proxy servers
(b) URL
(c) AWT classes.
21.What is the difference between multiprocessing and multithreading? What is to be done to implement these in
a program.
22.Explain applet life cycle with state transition diagram.
23.Explain how exception handling mechanism can be used for debugging a program.
24.Write a Java program that will count the number of characters in a file.
25.Write short notes on:
(a) Proxy servers
(b) URL
(c) AWT classes.
Month & Year of Examination:
Subject Code: PK5A
Semester: V
Year: Third Year
Time: Three hours
Maximum: 100 Marks
Subject Code: PK5A
Semester: V
Year: Third Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 3 = 30 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1. Define: Encapsulation.
2. What is an array? Give an example.
3. Give the general form of a Switch statement with an example.
4. Distinguish between a class and an object.
5. What is meant by method overloading?
6. Define: Static method.
7. Define: Interface.
8. Distinguish between a superclass and a subclass.
9. Write the use of throw statement with an example.
10.What are threads?
11.Write a note on: streams.
12.What is the use of server socket class?
2. What is an array? Give an example.
3. Give the general form of a Switch statement with an example.
4. Distinguish between a class and an object.
5. What is meant by method overloading?
6. Define: Static method.
7. Define: Interface.
8. Distinguish between a superclass and a subclass.
9. Write the use of throw statement with an example.
10.What are threads?
11.Write a note on: streams.
12.What is the use of server socket class?
Part - B (5 * 6 = 30 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13. Discuss about scope and life time of variables in java examples.
14. Explain the use of iteration statements in Java with examples.
15. Write a Java program to demonstrate an inner implementing interfaces with examples.
16. Discuss about defining an interface and implementing interfaces with examples.
17. Explain about synchronization in Java with example.
18. Write about notes on: String Buffer class.
19. Discuss briefly about InetAddress class.
14. Explain the use of iteration statements in Java with examples.
15. Write a Java program to demonstrate an inner implementing interfaces with examples.
16. Discuss about defining an interface and implementing interfaces with examples.
17. Explain about synchronization in Java with example.
18. Write about notes on: String Buffer class.
19. Discuss briefly about InetAddress class.
Part - C (4 * 10 = 40 Marks)
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
20. Write a Java program to arrange the given members in an ascending order.
21.Explain the usage of different operators in Java with suitable illustrations.
22.What are constructors? Write a Java program to illustrate parametrized constructors.
23. Explain about multitasking in Java with example.
24. Explain about any four utility classes in Java.
25. Discuss in detail, Menu bars and menus in Java with examples.
21.Explain the usage of different operators in Java with suitable illustrations.
22.What are constructors? Write a Java program to illustrate parametrized constructors.
23. Explain about multitasking in Java with example.
24. Explain about any four utility classes in Java.
25. Discuss in detail, Menu bars and menus in Java with examples.
Month & Year of Examination: Nov - 2009
Subject Code: PK5A
Semester:IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Subject Code: PK5A
Semester:IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 3 = 30 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1.Distinguish C and Java.
2.What is initialization? Why is it important?
3.What is symbolic constants? How they are useful in developing programs?
4. What are objects? How they are created using a class?
5. What is constructor? What are its special properties?
6.What is thread?
7.What is synchronization? When do we use it?
8.How do we define a catch block?
9. How does string class differ from String buffer class?
10.Describe different forms of inheritance with example.
11.Compare and contrast overloading and overriding method
12.When do we declare a method or class fina1/abstract?
2.What is initialization? Why is it important?
3.What is symbolic constants? How they are useful in developing programs?
4. What are objects? How they are created using a class?
5. What is constructor? What are its special properties?
6.What is thread?
7.What is synchronization? When do we use it?
8.How do we define a catch block?
9. How does string class differ from String buffer class?
10.Describe different forms of inheritance with example.
11.Compare and contrast overloading and overriding method
12.When do we declare a method or class fina1/abstract?
Part - B (5 * 6 = 30 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13. What are the similarities and differences between interface and classes?
14. Describe the complete life cycle of a thread.
15. Explain how the exception handling mechanism be used for debugging a program.
16. Explain applet life cycle with state transition diagram.
17.Explain the client/server relationship as applied to java applets.
18.What are input and output streams? Explain them with illustrations
19.Explain the OSI model in detail.
14. Describe the complete life cycle of a thread.
15. Explain how the exception handling mechanism be used for debugging a program.
16. Explain applet life cycle with state transition diagram.
17.Explain the client/server relationship as applied to java applets.
18.What are input and output streams? Explain them with illustrations
19.Explain the OSI model in detail.
Part - C (4 * 10 = 40 Marks)
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
20.Explain all the standard data types available in Java.
21.Write a Java program to find the sum of all integers greater than 100 and less than 200 that are divisible by 7.
22.Write a program to find the number of positive numbers in m *n matrix.
23.Discuss the steps involved in developing and running a local/remote applet.
24.Write a program to create an applet and display the message 'Welcome to the Java World'.
25.Write short notes on :
(a) Proxy servers
(b) TCP/IP
(c) AWT controls.
21.Write a Java program to find the sum of all integers greater than 100 and less than 200 that are divisible by 7.
22.Write a program to find the number of positive numbers in m *n matrix.
23.Discuss the steps involved in developing and running a local/remote applet.
24.Write a program to create an applet and display the message 'Welcome to the Java World'.
25.Write short notes on :
(a) Proxy servers
(b) TCP/IP
(c) AWT controls.
Month & Year of Examination: Nov - 2012
Subject Code: SAZ4A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Subject Code: SAZ4A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 2 = 20 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1. What is meant by object-oriented programming?
2. List the constants in Java.
3. What are constructors?
4. What are Variable Size Arrays? Give an example.
5. How does string class differ from the string buffer class?
6. What are Packages?
7. Define: Multithreading.
8. What is synchronization?
9. What is an Exception?
10. Define: Applets.
11. Define: TCP
12. Write a note on: Push Button Control.
2. List the constants in Java.
3. What are constructors?
4. What are Variable Size Arrays? Give an example.
5. How does string class differ from the string buffer class?
6. What are Packages?
7. Define: Multithreading.
8. What is synchronization?
9. What is an Exception?
10. Define: Applets.
11. Define: TCP
12. Write a note on: Push Button Control.
Part - B (5 * 5 = 25 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13. Write short notes on: Java Tokens.
14. Discuss briefly on type casting with examples.
15. Write about Defining a class and Adding Methods in Java with examples.
16. Write short notes on: Java API Packages.
17. Discuss briefly on Thread Priority with example.
18. Explain the syntax of Exception Handling Code with example.
19. Write about working with graphics with examples.
14. Discuss briefly on type casting with examples.
15. Write about Defining a class and Adding Methods in Java with examples.
16. Write short notes on: Java API Packages.
17. Discuss briefly on Thread Priority with example.
18. Explain the syntax of Exception Handling Code with example.
19. Write about working with graphics with examples.
Month & Year of Examination: Nov - 2008
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 3 = 30 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1.Define Encapsulation.
2.What are String Literals in Java? Give Examples.
3.What are classes in JAVA?
4. Define Inner Class.
5. What is the use of 'Super' Keyword? Give an example.
6.What is the purpose of 'import' statement ? Give example.
7.Define Exception.
8.List the several states of 'Thread' in JAVA.
9.Write a note on : The synchronized statement.
10.What are character streams?
11.Define Proxy Server.
12.Write a note on: Borderlayout.
2.What are String Literals in Java? Give Examples.
3.What are classes in JAVA?
4. Define Inner Class.
5. What is the use of 'Super' Keyword? Give an example.
6.What is the purpose of 'import' statement ? Give example.
7.Define Exception.
8.List the several states of 'Thread' in JAVA.
9.Write a note on : The synchronized statement.
10.What are character streams?
11.Define Proxy Server.
12.Write a note on: Borderlayout.
Part - B (5 * 6 = 30 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13.List the features in JAVA
14.Write a JAVA Program to find the Biggest Number among three given numbers.
15. Discuss about constructors with examples.
16. Write a short notes on 'String' class
17. Discuss about Inter thread Communication.
18. Write short notes on : 'Inetaddress' Class
19. Discuss about Datagrams in JAVA
14.Write a JAVA Program to find the Biggest Number among three given numbers.
15. Discuss about constructors with examples.
16. Write a short notes on 'String' class
17. Discuss about Inter thread Communication.
18. Write short notes on : 'Inetaddress' Class
19. Discuss about Datagrams in JAVA
Part - C (4 * 10 = 40 Marks)
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
20.Write a Java program to multiply two given matrices.
21.Explain about Method overloading with an example Java program
22.Describe in detail, how to handle exceptions in Java with examples
23. Explain about Multithreading with an example Java program
24. Describe in detail, TCP/IP server sockets.
25.Explain about any FOUR AWT controls with examples.
21.Explain about Method overloading with an example Java program
22.Describe in detail, how to handle exceptions in Java with examples
23. Explain about Multithreading with an example Java program
24. Describe in detail, TCP/IP server sockets.
25.Explain about any FOUR AWT controls with examples.
Month & Year of Examination: Nov - 2005
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 3 = 30 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1.What is Meant by ByteCode?
2.Write Short notes on Integer Databases In Java?
3.Write a note on Jump Statements In java?
4.Difference Between Class And an Object?
5.What are Static Methods?Give examples
6.Define interface
7.What is the use of throw statement?Give example.
8.Define the term Thread
9.Explain about ByteStreams in java?
10.How will you find out the length of a string in java?Give example.
11.what is an Internet Address?
12.Write a note on checkbox control in java?
2.Write Short notes on Integer Databases In Java?
3.Write a note on Jump Statements In java?
4.Difference Between Class And an Object?
5.What are Static Methods?Give examples
6.Define interface
7.What is the use of throw statement?Give example.
8.Define the term Thread
9.Explain about ByteStreams in java?
10.How will you find out the length of a string in java?Give example.
11.what is an Internet Address?
12.Write a note on checkbox control in java?
Part - B (5 * 6 = 30 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13.Explain about Lexical Issues in java with examples?
14.Explain about different groups of operators in java with examples?
15.write a java program to find the sum and average of n given numbers?
16.Explain about the use of various access specifiers in java with suitable examples?
17.Explain about packages in java with examples?
18.Discuss the procedure for applets development in java with example?
19.with an example of java program explain the use of AWT label control?
14.Explain about different groups of operators in java with examples?
15.write a java program to find the sum and average of n given numbers?
16.Explain about the use of various access specifiers in java with suitable examples?
17.Explain about packages in java with examples?
18.Discuss the procedure for applets development in java with example?
19.with an example of java program explain the use of AWT label control?
Part - C (4 * 10 = 40 Marks)
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
20.Explain about the three oop principles with examples?
21.Describe the implementation of method overloading with an example.
22.Write a java program to do matrix multiplication of two given matrices.
23.Explain the procedures for suspending,resuming and stopping threads in java programs.
24.Explain the methods in the following topics in java with examples.
25.Explain the use of URL connection class with an example program.
21.Describe the implementation of method overloading with an example.
22.Write a java program to do matrix multiplication of two given matrices.
23.Explain the procedures for suspending,resuming and stopping threads in java programs.
24.Explain the methods in the following topics in java with examples.
25.Explain the use of URL connection class with an example program.
Month & Year of Examination: Nov - 2005
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Subject Code: PK5A
Semester: IV
Year: Second Year
Time: Three hours
Maximum: 100 Marks
Part - A (10 * 3 = 30 Marks)
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
Answer any TEN questions
All questions carry equal marks
Each answer should not exceed 50 words
1.Distinguish C and Java.
2.What is initialization? Why is it important?
3. What is symbolic constants? How they are useful in developing programs?
4. What are objects? How they are created using a class?
5. What is constructor? What are its special properties?
6.What is thread?
7.What is synchronization? When do we use it?
8.How do we define a catch block?
9. How does string class differ from String buffer class?
10. Describe different forms of inheritance with example.
11. Compare and contrast overloading and overriding methods.
12. When do we declare a method or class fina1/abstract?
2.What is initialization? Why is it important?
3. What is symbolic constants? How they are useful in developing programs?
4. What are objects? How they are created using a class?
5. What is constructor? What are its special properties?
6.What is thread?
7.What is synchronization? When do we use it?
8.How do we define a catch block?
9. How does string class differ from String buffer class?
10. Describe different forms of inheritance with example.
11. Compare and contrast overloading and overriding methods.
12. When do we declare a method or class fina1/abstract?
Part - B (5 * 6 = 30 Marks)
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
Answer any FIVE questions
All questions carry equal marks
Each answer should not exceed 200 words
13. What are the similarities and differences between interfaces and classes?
14. Describe the complete life cycle of a thread.
15. Explain how the exception handling mechanism be used for debugging a program.
16. Explain applet life cycle with state transition diagram.
17. Explain the client/server relationship as applied to java applets.
18. What are input and output streams? Explain them with illustrations
19.Explain the OSI model in detail.
14. Describe the complete life cycle of a thread.
15. Explain how the exception handling mechanism be used for debugging a program.
16. Explain applet life cycle with state transition diagram.
17. Explain the client/server relationship as applied to java applets.
18. What are input and output streams? Explain them with illustrations
19.Explain the OSI model in detail.
Part - C (4 * 10 = 40 Marks)
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
Answer any FOUR questions
All questions carry equal marks
Each answer should not exceed 500 words
20. Explain all the standard data types available in Java.
21. Write a Java program to find the sum of all integers greater than 100 and less than 200 that are divisible by 7.
22. Write a program to find the number of positive numbers in m *n matrix.
23. Discuss the steps involved in developing and running a local/remote applet.
24. Write a program to create an applet and display the message 'Welcome to the Java World'.
25.Write short notes on : (a) Proxy servers (b) TCP/IP (c) AWT controls.
21. Write a Java program to find the sum of all integers greater than 100 and less than 200 that are divisible by 7.
22. Write a program to find the number of positive numbers in m *n matrix.
23. Discuss the steps involved in developing and running a local/remote applet.
24. Write a program to create an applet and display the message 'Welcome to the Java World'.
25.Write short notes on : (a) Proxy servers (b) TCP/IP (c) AWT controls.