java랑 안친해서 전혀 몰랐는데..
이런 충격적인 사실이 있었다니 -ㅁ-!
대충 검색해보니 unsigned - signed 변환에 예외가 많이 생기니까
차라리 전부 signed로 통일해버리면 깔끔해지기는 할듯 하다라는 이야기가 많이 나온다.
이런 충격적인 사실이 있었다니 -ㅁ-!
대충 검색해보니 unsigned - signed 변환에 예외가 많이 생기니까
차라리 전부 signed로 통일해버리면 깔끔해지기는 할듯 하다라는 이야기가 많이 나온다.
2.1.1 Primitive Data TypesOther than the primitive data types discussed here, everything in the Java programming language is an object. Even the primitive data types can be encapsulated inside library-supplied objects if required. The Java programming language follows C and C++ fairly closely in its set of basic data types, with a couple of minor exceptions. There are only three groups of primitive data types, namely, numeric types, character types, and Boolean types. Numeric Data Types Integer numeric types are 8-bit byte, 16-bit short, 32-bit int, and 64-bit long. The 8-bit byte data type in Java has replaced the old C and C++ char data type. Java places a different interpretation on the char data type, as discussed below. 2.1.2 Arithmetic and Relational OperatorsAll the familiar C and C++ operators apply. The Java programming language has no unsigned data types, so the >>> operator has been added to the language to indicate an unsigned (logical) right shift. Java also uses the + operator for string concatenation; concatenation is covered below in the discussion on strings.[링크 : http://java.sun.com/docs/white/langenv/Simple.doc1.html] |
[링크 : http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html ] |
'Programming > Java' 카테고리의 다른 글
Java 에서 파일 목록 엳어오기 (0) | 2011.10.29 |
---|---|
netbeans 에서 코드 자동정렬 (0) | 2011.10.29 |
Java용 폴더 다이얼로그 (0) | 2011.10.28 |
netbeans IDE (0) | 2010.08.23 |
unit test - 단위 테스트 (0) | 2010.08.18 |