JDevelopers Guide - IBM Java Interview Questions For 3-8 Year Experience
JDevelopers Guide - IBM Java Interview Questions For 3-8 Year Experience
Select Language
Members (12)
Q. What is Difference between Iterator and ListIterator?
Ans : Both are used to retrieve the data from collection. Iterator only traverse in forward direction,
but ListIterator can traverse in both forward and backward direction. ListIterator has
hasPrevious() and previous() method which is not available in Iterator.
Ans : Synchronized Method defines a self contained block and its easy to handle in multithreaded environment. Both act as similar; there is no major advantage over each other. The
difference is that a synchronized block can choose which object it synchronizes on. A
synchronized method can only use 'this' (or the corresponding Class instance for a
synchronized class method).
Feed This
Blog Archive
2015 (1)
2014 (20)
December (3)
November (1)
October (2)
September (8)
August (2)
July (1)
June (2)
March (1)
All Posts
(7)
HTML (12)
Q. Difference between java.util.date and java.sql.date ?
Ans : As we know every database support most three form of entry i.e. date, time and
timestamp. In java JDBC having all those supports using java.sql.Date, java.sql.Time,
java.sql.TimeStamp. Internally all these JDBC classes extends java.util.Date.
MYSQL (30)
Question Answer (4)
Servlet (5)
Struts (6)
SQL (16)
Q. I have 1 to 100 elements in array unordered, one element missed find that one?
Ans : There is existing old formula. Calculate the sum of all numbers stored in the array of size 11
means it hold 12 data. Then, subtract the sum from (12 * 13)/2
Popular Posts