

MCQOPTIONS
Saved Bookmarks
This section includes 215 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
201. |
What are the pillars of OOPS concept? |
A. | Abstraction, Inheritance, Encapsulation, Polymorphism |
B. | Atomicity, Inheritance, Encapsulation, Polymorphism |
C. | Abstraction, Inheritance, Polymorphism |
D. | None of the Above |
Answer» B. Atomicity, Inheritance, Encapsulation, Polymorphism | |
202. |
__________ provides the naming services for the server to register the object and for theclient to locate the object. |
A. | Server stub |
B. | RMI Registry |
C. | Server implementation |
D. | Server Skeleton |
Answer» C. Server implementation | |
203. |
The class used to make a standalone application in java. |
A. | Applet |
B. | Panel |
C. | Frame |
D. | Form |
Answer» D. Form | |
204. |
What can a method do with a checked exception? |
A. | Check the exception or ignore it. |
B. | Return the exception to the sender or handle it in a catch block. |
C. | Throw the exception to the method that called this method, or handle the exception in a catch block. |
D. | Handle the exception in the try block or handle the exception in the catch block. |
Answer» D. Handle the exception in the try block or handle the exception in the catch block. | |
205. |
Which of the following are true about interfaces. |
A. | Methods declared in interfaces are implicitly private. |
B. | Variables declared in interfaces are implicitly public, static, and final. |
C. | An interface contains any number of method definitions. |
D. | The keyword implements indicate that an interface inherits from another. |
Answer» C. An interface contains any number of method definitions. | |
206. |
Which method in Thread class is used to check weather a thread is still running? |
A. | isAlive() |
B. | Join() |
C. | isRunning() |
D. | Alive() |
Answer» B. Join() | |
207. |
The ActionListener interface is used for handling action events,For example,it's used by a |
A. | JButton |
B. | JCheckbox |
C. | JMenuItem |
D. | All of these |
Answer» E. | |
208. |
In which package is the class Vector located? |
A. | java.io |
B. | java.lang |
C. | java.util |
D. | java.text |
Answer» D. java.text | |
209. |
The classes Reader and Writer are derived from the class _________. |
A. | Streams |
B. | Inputs |
C. | Outputs |
D. | Object |
Answer» E. | |
210. |
In a RMI Client Program, what are the exceptions which might have to handled? |
A. | RemoteException |
B. | NotBoundException |
C. | MalFormedURLException |
D. | All mentioned above |
Answer» E. | |
211. |
How many constructors does the class Exception have? |
A. | 0 |
B. | 1 |
C. | 2 |
D. | 3 |
Answer» D. 3 | |
212. |
Which of these classes is related to all the exceptions that cannot be caught? |
A. | Error |
B. | Exception |
C. | None of these |
D. | a & b |
Answer» B. Exception | |
213. |
What is the correct JavaScript syntax to insert a comment that has more than one line? |
A. | <!--This comment has more than one line--> |
B. | /*This comment has more than one line*/ |
C. | //This comment has more than one line// |
D. | <//This comment has more than one line//> |
Answer» C. //This comment has more than one line// | |
214. |
The method to get the text of a Label |
A. | getLabel() |
B. | getText() |
C. | getString() |
D. | getData() |
Answer» C. getString() | |
215. |
Which of the following are true about the Error and Exception classes? |
A. | Both classes extend throwable |
B. | The error class is final and exception class is not. |
C. | The Exception class is final and the Error is not. |
D. | Both classes implement Throwable |
Answer» B. The error class is final and exception class is not. | |