sizeof for Java