Index . 블로그창고 . Any comments?

\cat programming

How to compile and run java programs

javac foo.java
java foo

Package?

If foo.java declares a package name at the top of the file:

package bar;

then all the related files should be in a "bar" directory and run it like the following under the parent directory of the "bar":

java [-classpath .] bar.foo

sizeof?

There is no sizeof implementation for Java because all primitives have the same sizes over all JVM.

TypeSize
boolean1 bit
char16 bit
byte8 bit
short16 bit
int32 bit
long64 bit
float32 bit
double64 bit

All the works in this site except software and copyrighted materials by others (e.g., 문학) are licensed under a Creative Commons License. 소프트웨어 및 문학과 같이 다른 이에게 저작권이 있는 작품을 제외하고 모두 크리에이티브 커먼즈 라이센스를 따른다.
Mon Mar 25 01:34:27 2024 . XHTML . CSS (lightbox.css is not part of Uniqki. ;-) . Powered by Uniqki!
refresh . edit . loginout . index