This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is The Difference Between The >> And >>> Operators? |
|
Answer» The >> operator carries the SIGN bit when SHIFTING RIGHT. The >>> zero-fills bits that have been SHIFTED out. The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out. |
|
| 2. |
What Is An Iterator Interface? |
|
Answer» The ITERATOR INTERFACE is used to STEP through the elements of a Collection. The Iterator interface is used to step through the elements of a Collection. |
|
| 3. |
What Is The Vector Class? |
|
Answer» The Vector class PROVIDES the CAPABILITY to implement a growable array of OBJECTS. The Vector class provides the capability to implement a growable array of objects. |
|
| 4. |
How Does Java Handle Integer Overflows And Underflows? |
|
Answer» It uses those low ORDER BYTES of the RESULT that can fit into the size of the type ALLOWED by the operation. It uses those low order bytes of the result that can fit into the size of the type allowed by the operation. |
|
| 5. |
What Is The List Interface? |
|
Answer» The LIST interface PROVIDES SUPPORT for ORDERED collections of OBJECTS. The List interface provides support for ordered collections of objects. |
|
| 6. |
Which Characters May Be Used As The Second Character Of An Identifier, But Not As The First Character Of An Identifier? |
|
Answer» The digits 0 through 9 may not be USED as the first CHARACTER of an identifier but they may be used after the first character of an identifier. The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier. |
|
| 7. |
What Is The Collections Api? |
|
Answer» The COLLECTIONS API is a SET of classes and interfaces that SUPPORT OPERATIONS on collections of objects. The Collections API is a set of classes and interfaces that support operations on collections of objects. |
|
| 8. |
What State Does A Thread Enter When It Terminates Its Processing? |
|
Answer» When a THREAD TERMINATES its PROCESSING, it ENTERS the dead state. When a thread terminates its processing, it enters the dead state. |
|
| 9. |
Which Containers Use A Flowlayout As Their Default Layout? |
|
Answer» The Panel and Applet CLASSES USE the FLOWLAYOUT as their default layout. The Panel and Applet classes use the FlowLayout as their default layout. |
|
| 10. |
What Method Is Used To Specify A Container's Layout? |
|
Answer» The setLayout() METHOD is USED to SPECIFY a CONTAINER's LAYOUT. The setLayout() method is used to specify a container's layout. |
|
| 11. |
What Is The Preferred Size Of A Component? |
|
Answer» The PREFERRED size of a COMPONENT is the MINIMUM component size that will allow the component to display normally. The preferred size of a component is the minimum component size that will allow the component to display normally. |
|
| 13. |
What's New With The Stop(), Suspend() And Resume() Methods In Jdk 1.2? |
|
Answer» The stop(), SUSPEND() and RESUME() methods have been deprecated in JDK 1.2. The stop(), suspend() and resume() methods have been deprecated in JDK 1.2. |
|
| 14. |
Can A Lock Be Acquired On A Class? |
|
Answer» YES, a LOCK can be ACQUIRED on a CLASS. This lock is acquired on the class's Class OBJECT.. Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.. |
|
| 15. |
What Is Synchronization And Why Is It Important? |
|
Answer» With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one THREAD to MODIFY a shared object while another thread is in the process of using or UPDATING that object's value. This often leads to significant ERRORS. With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors. |
|
| 16. |
How Are Observer And Observable Used? |
|
Answer» Objects that subclass the Observable class maintain a LIST of observers. When an Observable object is updated it INVOKES the UPDATE() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that OBSERVE Observable objects. Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects. |
|
| 17. |
Why Do Threads Block On I/o? |
|
Answer» Threads block on I/O (that is enters the WAITING STATE) so that other threads MAY EXECUTE while the I/O OPERATION is performed. Threads block on I/O (that is enters the waiting state) so that other threads may execute while the I/O Operation is performed. |
|
| 18. |
Which Containers Use A Border Layout As Their Default Layout? |
|
Answer» The WINDOW, Frame and DIALOG classes use a border layout as their DEFAULT layout. The Window, Frame and Dialog classes use a border layout as their default layout. |
|
| 19. |
What Is A Transient Variable? |
|
Answer» A TRANSIENT VARIABLE is a variable that MAY not be SERIALIZED. A transient variable is a variable that may not be serialized. |
|