Chetan Dorle wrote:but i checked internal implementation of the method which again using the loop.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Chetan Dorle wrote:but i checked internal implementation of the method which again using the loop.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Winston Gutkowski wrote:
Chetan Dorle wrote:but i checked internal implementation of the method which again using the loop.
Tip: never, EVER, check the internal implementation of a method, as it may vary from release to release.
Mike Simmons wrote:I would say, if you do look at a method implementation, be aware that there's a difference between the current internal implementation, which may change in future releases without warning, and the documented behavior of a method. The latter may also change in some cases, but that's much less common, especially for a widely-used library from a responsible third party. When possible, use methods based on what you know about them from their documentation, rather than their internal implementation. But do not, under any circumstances, let someone tell you to NEVER look at internal implementations.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here