Hi , Can some help explaining following Q. Which J2EEpattern does JDBCResult set implement? (select 1 ans) a. Iterator b. Observer c. Facade d. Bridge Can someone tell me answer to the above question and how that pattern is impmented? Regards, Chetan Mehta
I think it should be Iterator. [This message has been edited by Vishakha Ahuja (edited August 14, 2001).]
Joined: Sep 13, 2000
The Iterator allows you to move through a list or collection of data using a standard interface without having to know the details of the internal representation of that data. According to this definition, iterator suits best as an answer because the ResultSet object lets you iterate through the entire collection using various methods like first(), last(), next().