Fremen wrote: 1/ Will including more packages than I need increase the memory footprint of my program and/or degrade its performance? (eg. import java.util.* instead of java.util.Vector)
Fremen wrote: 2/ I usually use eclipse (not sure if this is important). Why is it that my syntax errors are corrected on the fly in java, whereas in c++ I need to compile my program first to find out where I went wrong?
Fremen wrote: 3/ It seems to me that Vectors do everything arrays do and more. Why would anyone use arrays? (short of not having to do a typecast once you return an element from an array)
Khannie wrote: It will increase compile time, but not affect runtime AFAIR. Someone correct me if I'm wrong. It's been a while.
Khannie wrote: In c++, arrays are substantially faster (vectors are still fast mind you). I'd assume that Java arrays are implemented natively in a way that's closer to actual arrays than vectors. (this is just a guess).