Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
28 views

Java 1 Marker Questions

The document lists questions about Java programming concepts including questions about JDK, JRE, OOP, exceptions, threads, layout managers, applets, swing components and event handling.

Uploaded by

teweper466
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Java 1 Marker Questions

The document lists questions about Java programming concepts including questions about JDK, JRE, OOP, exceptions, threads, layout managers, applets, swing components and event handling.

Uploaded by

teweper466
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1. Full form of JDK.

2. Full form of JRE.


3. Full form of OOP.
4. Full form of JVM.
5. What is Public?
6. What is Private?
7. What is Protected?
8. What is a package?
9. When do Exceptions in Java arise in code sequence?
10. What keyword must be used to monitor for exceptions?
11. Which method of the Thread class is used to find out the priority given to a thread?
12. Which method is used to start a thread execution?
13. What is Flow Layout?
14. What is No Layout?
15. What is a Card Layout?
16. What is Box Layout?
17. What is a JLabel?
18. What is the Default value in the Long datatype?
19. What cannot be used as names for a variable, class, or method?
20. Who created the Java programming language?
21. How many bits are stored when creating a short type variable?
22. Which package is imported when we use the Random Class?
23. Which class is the superclass of all classes?
24. List down access specifiers available in Java.
25. How many arguments are passed in replace()?
26. Is Gregorian Calendar class under java.util package in Java? (True/False)
27. When the source file is successfully compiled, what file is generated?
28. List down Java Edition names.
29. Which package is imported when we use StringBuffer Class?
30. List out two valid constructors for Thread.
31. Exception is an error to handle it. (True/False)
32. When any number divisible by zero, what exception is generated?
33. Exceptions occur when an invalid array index is used. (True/False)
34. What is the name of the method used to stop a thread for some time?
35. All exception types are a subclass of the class. (True/False)
36. Explain the Finally block in Exception.
37. Which methods can be used to output a string in an applet?
38. Which are two methods executed only one time in the applet life cycle?
39. Which method is used with a Graphics class object as an argument?
40. How many parameters are passing in g.drawLine() method?
41. Which command is used for the Execution of an Applet?
42. What is the default layout in an applet?
43. Which method of the graphics class is used to draw a circle in an applet?
44. Which method is called first by an Applet?
45. Full Form of IFC.
46. Full Form of GUI.
47. Full Form of API.
48. Which package is needed to use Swing components?
49. List out MouseMotionListener Event Handler.
50. Architecture followed by SWING.
51. What is a Data type?
52. What is a Keyword?
53. What is an Identifier?
54. What is Inheritance?
55. What is a Nested Class?
56. What is a final class?
57. What is an interface?
58. What is a Daemon Thread?
59. What is the Thread Class?
60. What is finally?
61. What is throws?
62. Which function is called to display the output of an applet?
63. Which method is called only once during the runtime of your applet?
64. Which classes in Java contain the swing version of an applet?
65. Which of these classes is the superclass of all the events?
66. Which of these methods are used to register a keyboard event listener?
67. Which of these methods is used to register a mouse motion listener?
68. Full form of IDE.
69. Which keyword must be used to inherit a class?
70. A class member declared protected becomes a member of the subclass of which type?
71. The class that is being inherited or subclasses is called?
72. Java language supports what type of inheritance?
73. Which of the following handles the exception when a catch is not used?
74. Which keyword is used to manually throw an exception?
75. Which exceptions are thrown by the JVM?
76. Who is known as the father of the Java Programming Language?
77. What is byte code in Java?
78. Java language was initially called as?
79. Javap means?
80. Conditional operator also known as?
81. Which method is used for garbage collection?
82. Write types of access control.
83. Which package is imported when we use Random class?
84. How many bits are stored when creating a long type variable?
85. Which type of class is not inherited in Java?
86. How many arguments are passed in the replaceQ function?
87. Which package is imported when we use StringBuffer Class?
88. In the Gregorian Calendar class under java.util package in Java? (Yes/No)
89. We can declare an abstract static method. (True/False)
90. Array index is out of range which exception is generated?
91. Which method is used to stop a Thread for some time?
92. In Exception handling which block is optional?
93. When any number divisible by zero which exception is generated?
94. What is the name of the method used to start a thread execution?
95. Full Name: GUI.
96. Full Name: AWT.
97. Full Name: API.
98. Which package is needed to use swing components?
99. Full Name: IFC.
100. How many methods are in KeyListener interface?
101. How many Constructors are in JMenu class?

You might also like