It might not seem clear, but actually
String is using up the most memory.
For example, creating Strings like this:
is very bad practice. When using very long Strings, you might encounter problems.
Strings should be created like this:
You don't really have to worry about memory so much. Using large Images or doing complex operations (like constructing an Image from pixel data) is the only thing
you should be carefull with.
You can always read how much memory you have by using:
Hope this helps !
Alex