title: What basically is RandomAccess? Why we use RandomAccess?
body: <p>I was studying collections in java in between I got stuck a point that some classes like ArrayList implements <strong>RandomAccess</strong> too while some classes don't. I want to know that why this interface is implemented and what its benefit? What would happen if I use this Interface in my class?</p>