eBay Interview Question: If I mark an arraylist as fin... | Glassdoor.co.uk

Interview Question

Software Engineer Interview(Student Candidate) San Jose, CA (US)

If I mark an arraylist as final, can i add more elements to


Interview Answer

3 Answers


Yes , You can add to Arralylist because marking final means you are creating final variable which can't hold any other object ref except the defined Arralylist .

Ashutosh on 26 Aug 2014

Hey guys I used rooftop slushie to get an answer for this interview at eBay. You should give it a try.


Anonymous on 15 Jul 2019

I think the key in generic questions like this is to be careful to cover the fundamentals, and to be familiar with all the followups so you're prepared for whatever they throw at you. Maybe do a mock interview with an Ebay Software Engineering expert on PrepTick to get a real-world answer? They give lots of guidance and pro tips on how to deal with this kind of stuff.


Anonymous on 23 Jul 2019

Add Answers or Comments

To comment on this, Sign In or Sign Up.