0% found this document useful (0 votes)
19 views2 pages

Daa

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Daa

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

35. What are the differences between classes and interfaces?

Distinguish between class and


interface. (K2)
36. What is chained exception? (K1)
37. How character streams are defined? (K2)
DEPARTMENT OF COMPUTER SCIENCE AND BUSINESS SYSTEMS
38. State the conditions for method overriding in java. (K2)
CS3391 – Object Oriented Programming
39. Write the syntax for importing packages in a java source file and give an example. (K1)
MODEL EXAMINATION EXPECTED QUESTIONS
40. Write some java string class methods. (K1)
PART-A
41. What is thread group? (K2)
1. Compare class and object. (K4)
42. Differentiate Autoboxing and Unboxing. (K2)
2. List the various access specifiers in java. (K1)
43. Why to handle exceptions? (K2)
3. List the features of Object-Oriented Programming. (K2)
44. What is thread priority? How it can be set for a thread? (K1, K2)
4. Give an example for defining constant in Java. (K2)
45. List the values associated with the parameters of setpriority() method of thread class. (K2)
5. What is an array? How Multidimensional arrays are implemented in JAVA? (K1, K2)
46. Define Deadlock. (K1)
6. Name the access modifiers in Java. (K2)
47. Outline the difference between unchecked exceptions and checked exceptions. (K2)
7. What is bytecode? (K1)
48. Name the methods used by Java for interprocess communication to avoid polling. (K2)
8. What is the general form of for-each version of the for statement. (K1)
49. Name the two ways to create a thread in java. (K2)
9. Java language is platform independent. Justify your answer. (K4, K2)
50. Define Arithmetic Exception with example. (K1)
10. Difference between Method and Constructor. (K2)
51. What is thread pool? (K1)
11. Define OOP. What are the OOP Principles? (K2)
52. What is life cycle of Thread, explain thread states? (K1, K2)
12. What is object-oriented programming? (K2)
53. What is the use of printStackTrace() method? (K1)
13. Differentiate static binding and dynamic binding. (K2)
54. How are the stream classes classified? (K2)
14. Define encapsulation in JAVA. (K1)
55. Define stack trace element. (K1)
15. Outline the use of extends keyword in Java with syntax.
56. What is thread? (K1)
16. What is a Constructor. (Or) Define constructor. (K1)
57. Name the two ways to create a thread in Java. (K2)
17. Can a java source file be saved using a name other than the class name? Justify. (K2/K4)
58. What is synchronization? (K1)
18. What are inline functions? Give examples. (K1. K2)
59. What is the purpose of finally clause? Give examples. (K1, K2)
19. What is an object? Give example. (K1, K2)
60. What is the need of synchronization? How it can be implemented? (K2)
20. Define an abstract data type. (K1)
61. Illustrate any four-character stream class. (K3)
21. Give the use of final keyword. (K2)
62. Define generic class and generic method. (K2)
22. Define Abstract Class. (K1)
63. Why to handle exceptions? (K2)
23. Mention the use of constructor overloading. (K2)
64. What is thread priority? How it can be set for a thread? (K1, K2)
24. Illustrate methos overriding with an example. (K2)
65. List the values associated with the parameters of setpriority() method of thread class. (K2)
25. Define Inheritance. (K1)
66. Define Deadlock. (K1)
26. How can a subclass can call a constructor defines by its superclass. (K4)
67. Outline the difference between unchecked exceptions and checked exceptions. (K2)
27. What is the use of final keyword? (K2)
68. Name the methods used by Java for interprocess communication to avoid polling. (K2)
28. Define interface. State its use. (K1, K2)
69. Name the two ways to create a thread in java. (K2)
29. Define package. (K1)
70. Define Arithmetic Exception with example. (K1)
30. Differentiate Method overloading and overriding. (K2)
71. What is thread pool? (K1)
31. Can we access parent class variables in child class by using super keyword? (K2)
72. What is life cycle of Thread, explain thread states? (K1, K2)
32. State the conditions for method overriding in java. (K2)
73. What is the use of printStackTrace() method? (K1)
33. Define multiple superclass inheritance. Write the syntax of it. (K1, K2)
74. How are the stream classes classified? (K2)
34. Exemplify the use of super keyword? (K2)
75. Define stack trace element. (K1)
1 2
76. What is thread? (K1) 13. Write a java program that collects the input as a decimal number of integers types and
77. Name the two ways to create a thread in Java. (K2) converts it into a String of equivalent hexadecimal number. (K2, K3)
78. What is synchronization? (K1) 14. Describe about multithreading with example program. (K2)
79. What is the purpose of finally clause? Give examples. (K1, K2) 15. Outline method overriding with an example. (K2)
80. What is the need of synchronization? How it can be implemented? (K2) 16. Write a Java program to read data from a file and to write data to a file. (K2)
81. Describe the components required for the JAVAFX. (K2) 17. Write short notes on various I/O streams in java. (K2)
82. Give the role of layout manager. Which layout is default in Java? (K2) 18. Why parameterized types are important? Outline Java generics with an example. (K2)
83. Write any four methods associated with basic string class. (K2) 19. Write a Java program to accept `n' names, store it in an array, sort the names in
84. What is a String Buffer Class? (K1) alphabetic order and display the result. Use classes and methods. (K2)
85. What are streams? (K2) 20. Formulate the motivations of generic programming. (K4)
86. Why parameterized types are important? (K2) 21. Write a java program to illustrate the use of JAVAFX checkbox and choice box controls.
87. State the purpose of Valueof() method in string class. (K2) (K3)
88. List any 2 methods available in DataOutput interface. (K2) 22. What is a Button? Name and outline the types of buttons JAVAFX provides with visual
89. When a class must be declared as abstract? (K2) representation. (K1, K2)
90. What are the uses of streams. What are the two types of streams? (K1, K2) 23. Discuss how an application can respond to events in Java? Design a user interface with a
91. How character streams are defined? (K2) Scroll Pane that accommodates a large image or text content. Explain how you would
92. What is synchronization? (K1) handle scrolling behavior and adapt the viewport size. (K2)
93. What are the uses of streams? What are the two types of streams? (K2) 24. Explain briefly about Mouse and Key events availed with JAVAFX. (K2) Write a Java program
94. Give the syntax of generic class with an example. (K2) that arranges the strings in alphabetical order. (K1, K5) Write a short note on JAVAFX basics.
95. Give an example for reading data from files using FileInputStream. (K2) (K1)
96. Explain the different states of a thread in detail. (K2) 25. Explain briefly about various types of Layouts and Menu items can be added in an JAVAFX
97. What are the purposes of thread priorities? (K2) programming. (K2)
98. What is the need for generic code? (K1)
99. Write some java string class methods. (K2)
100. What are the methods defined in InputStream and OutputStream? (K2)
PART – B & C
1. Explain OOPS and its features. (K1)
2. Write a Java program to accept two square matrices, store them in an array, add the
matrices and display the result. Use classes and methods. (K1)
3. Illustrate the working principles of JVM with neat diagram. (K3)
4. Explain the selection statements in java using suitable examples. (K2)
5. Write a java code using do-while loop that counts down to 1 from 10 printing exactly ten
lines of “hello”. (K3)
6. Describe the types of inheritance with example program. (K2)
7. Write a program for interface concept in java. (K1)
8. What is user defined package? How to create and import a user defined package? Explain
with example. (K1, K2)
9. Discuss the concept of abstract class with example program. (K2)
10. What is static inner class explain with example. (K1, K2)
11. Classify the errors and exception in Java. (K2)
12. Illustrate the multiple catching exceptions with example. (K3)

3 4

You might also like