I read that byte data type takes up smaller amount of memory compared to integer data type in JVM. But, I am curious whether the statement above also works for Android Dalvik VM. Is it correct that using byte instead of integer in Android will improve efficiency ?
FYI, currently i am using an array which stores hundred-thousands of int, but the integer only fluctuates between 0-10. So I'm considering changing it to byte if it can improve the performance of my program.
My apologies if my question sounds stupid since I'm new to Java.
Thanks in advance :)