ST. ANNE’S ARTS AND SCIENCE COLLEGE ST.
ANNE’S ARTS AND SCIENCE COLLEGE
MADAVARAM, CHENNAI – 110. MADAVARAM, CHENNAI – 110.
MODEL EXAM OCTOBER 2025 MODEL EXAM OCTOBER 2025
DEPARTMENT OF COMPUTER SCIENCE DEPARTMENT OF COMPUTER SCIENCE
CLASS: II BSC COMPUTER SCIENCE SUB CODE: 225C3A CLASS: II BSC COMPUTER SCIENCE SUB CODE: 225C3A
SUBJECT: JAVA PROGRAMMING DATE: /10/2025 SUBJECT: JAVA PROGRAMMING DATE: /10/2025
MAXMARKS: 75 MAX TIME: 3 HRS MAXMARKS: 75 MAX TIME: 3 HRS
PART – A PART – A
ANSWER ANY TEN QUESTIONS (10X2 =20) ANSWER ANY TEN QUESTIONS (10X2 =20)
1. Write the general form of a method declaration in java. 1. Write the general form of a method declaration in java.
2. Write a note on static method. 2. Write a note on static method.
3. Why is java known as platform independent language? 3. Why is java known as platform independent language?
4. Define: "Array" with example. 4. Define: "Array" with example.
5. Mention the advantages of constructor. 5. Mention the advantages of constructor.
6. Show the declaration of Abstract classes. 6. Show the declaration of Abstract classes.
7. State the use of dynamic method dispatch. 7. State the use of dynamic method dispatch.
8. What is interface? 8. What is interface?
9. How to block or stop a thread? Give an example? 9. How to block or stop a thread? Give an example?
10. Define: "Swing". 10. Define: "Swing".
11. What is vector? How it is different from an array? 11. What is vector? How it is different from an array?
12. Comment on Enumeration. 12. Comment on Enumeration.
PART- B PART- B
ANSWER ANY FIVE QUESTIONS (5X5 =25) ANSWER ANY FIVE QUESTIONS (5X5 =25)
13. How will you declare a variable in java? Give example. 13. How will you declare a variable in java? Give example.
14. Summarize the JVM architecture with diagram. 14. Summarize the JVM architecture with diagram.
15. Write a Structure of java program. 15. Write a Structure of java program.
16. Describe the usage of this and super keyword. 16. Describe the usage of this and super keyword.
17. Elaborate the types of built-in-exceptions in java. 17. Elaborate the types of built-in-exceptions in java.
18. Explain adapted classes. 18. Explain adapted classes.
19. Write a java program to find the sum of the digits of a given integer. 19. Write a java program to find the sum of the digits of a given integer.
PART-C PART-C
ANSWER ANY THREE QUESTIONS (3 X 10 =30) ANSWER ANY THREE QUESTIONS (3 X 10 =30)
[Link] Static data and Static method. [Link] Static data and Static method.
21. Explain Arrays in java. 21. Explain Arrays in java.
22. Illustrate a java program on Text editor. 22. Illustrate a java program on Text editor.
23. Describe the usage of vectors and Array list. 23. Describe the usage of vectors and Array list.
24. Examine the methods used for collection and iterator interface. 24. Examine the methods used for collection and iterator interface.