iPhone Android : Memory Handling , which one uses more memory ?-Collection of common programming errors
There’s no way to tell – these are two different languages, running on completely different operating systems & hardware. Objective-C is compiled to native code, whereas Android’s Java is compiled into bytecode, and then interpreted at runtime.
However, because Strings are a built-in construct to both languages, it’s extremely likely that the implementation is very efficient on both. Basically you don’t have to worry about the memory efficiency of handling Strings in mobile apps – there are far more pressing concerns!