Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 141. What is your platform's default character encoding?

Ans. If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1.

Is it helpful? Add Comment View Comments
Ques 142. Which package is always imported by default?
Ans. The java.lang package is always imported by default.
Is it helpful? Add Comment View Comments
Ques 143. What interface must an object implement before it can be written to a stream as an object?
Ans. An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.
Is it helpful? Add Comment View Comments
Ques 144. How can my application get to know when a HttpSession is removed?
Ans. Define a Class HttpSessionNotifier which implements HttpSessionBindingListener and implement the functionality what you need in valueUnbound() method. Create an instance of that class and put that instance in HttpSession.
Is it helpful? Add Comment View Comments
Ques 145. Whats the difference between notify() and notifyAll()?
Ans. notify() is used to unblock one waiting thread; notifyAll() is used to unblock all of them. Using notify() is preferable (for efficiency) when only one blocked thread can benefit from the change (for example, when freeing a buffer back into a pool). notifyAll() is necessary (for correctness) if multiple threads should resume (for example, when releasing a 'writer'?? lock on a file might permit all 'readers'?? to resume).
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook