This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

ArrayList can be iterated bidirectionaly!

 
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


#176 Which three are true for class java.util.ArrayList? (Choose three.)


(1) It can contain duplicates
(2) Its methods are thread-safe
(3) Can be iterated bi-directionally <--
(4) It implements java.util.Set
(5) It is well-suited for fast random access
(6) It implements java.util.Collections



Source: "Giri Mandarika" (Link provided in JavaRanch)

How option 3?

Is option 3 talking about ListIterator, because only that can be used to iterate the list bidirectionally?

Is ListIterator in the exam? It is Iterator (with two methods hashNext() and next() as I know), that is discussed in K&B!



Please Help?

Regards,
cmbhatt
 
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,

Chandra asked

Is option 3 talking about ListIterator?


Must be, yes. ListIterator has got the hasPrevious() method that the ordinary Iterator does not have.

But since you obviously know this, I wouldn't care if ListIterator on the exam.


Yours,
Bu.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chandra,

Are you preparing for SCJP1.5 ? if so, pls specify your exam date.

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic