Due to my few concepts of Java, I have a basic question.
In this situation:
Device devA = new Device();
Device devB = new Device();
ArrayList<Device> allDev = new ArrayList();
allDev.add(devA);
allDev.add(devB);
If after that I modify devA or devB, also allDev will be modified accordingly?
Yes. You add a reference to
devAanddevBto theArrayList. Any change to these object will be reflected to them when you access them through theArrayListas well.