Akamai Interview Question
Software Engineer / DevelopersTime complexity is not a feature of java code but of algorithms.
Space complexity you cannot control in java because you don't know what it is doing behind the scenes.
Eg. in C++, if you just have 8B space,you could do a int x = new int(23); int y = new int(30); delete x; int p = new int...
i mean that memory is totally in user's control in C++, but not in java.
I didn't understand this question. But optimum java code is the one that doesn't rely that doesn't crash due to memory issues. So, make sure that you use string objects instead of string etc..
- Messi April 13, 2010