What is Byte?

A byte is the basic unit of 1-byte, 8-bit data.

Byte sequence byte []: Fixed-length byte string // Data cannot be changed once decided. Column = array saw ByteArrayOutputStream: Variable length byte string // Data can be changed / added later

Conversion from byte array to String byte [] bytes = new byte [] {0x61, 0x62, 0x63} / 0x61 is a hexadecimal number String s = new String(bytes); // => abc

Conversion from String to byte array String s = abc; byte [] bytes = s.getBytes (); // Receive as byte data.

Conversion from String to UTF-8 byte string String s = Aiueo; byte[] bytes = s,getBytes(java.nio.charset.StandardCharsets.UTF_8);

Recommended Posts

What is Byte?
What is Cubby
What is Docker?
What is null? ]
What is java
What is Keycloak
What is maven?
What is Jackson?
What is Docker
What is self
What is ArgumentMatcher?
What is IM-Juggling?
What is params
What is SLF4J?
What is Facade? ??
What is Gradle?
What is POJO
What is Java
What is centOS
What is programming?
What is before_action?
What is Docker
What is Tomcat
What is Maven Assembly?
What is `docker-compose up`?
What is a constructor?
What is vue cli
What is an interface?
What is Ruby's self?
What is hard coding?
What is a stream
What is Ruby's attr_accessor?
What is Java Encapsulation?
What is instance control?
What is an initializer?
What is Spring Tools 4
What is an operator?
What is object orientation?
What is Guava's @VisibleForTesting?
What is MVC model?
What is an annotation?
What is Java technology?
What is Java API-java
What is @ (instance variable)?
What is JPA Auditing?
[Swift] What is dismiss?
[Java] What is flatMap?
What is a Servlet?
What is web development?
[Java] What is JavaBeans?
[Android] What is Context? ??
[Java] What is ArrayList?
[Ruby] What is true?
What is object-oriented after all?
What is HttpSession session = request.getSession ();
What is docker run -it?
What is Java Assertion? Summary.
[Memorandum] What is an error?
What is DI (Dependency Injection)
What is a wrapper class?
What is object-oriented programming? ~ Beginners ~