Код: Выделить всё
public class Main {
public static void main(String[] args) {
int x = 10;
byte y = 125;
float z = 2.5f;
long ln = 50;
// How can I know the size of this variables ?
// it there any way to print the size of this primitive types ?
}
}
Подробнее здесь: https://stackoverflow.com/questions/772 ... pe-in-java