Java Basic Learning Content 8 (Java API)

java.lang.Obcect A superclass of all classes. ** boolean equals (Object hoge) ** → Compare if the instances of objects are equal ** final Class <?> getClass () ** → Returns the runtime class of the object ** int hachCode () ** → Returns the hash code value of the object ** String toString () ** → Convert object to String

java.lang.Math What provides a math library.

** static final double E ** → constant e (natural logarithm constant) ** static final double PI ** → constant π (pi)

** static double random () ** → Returns a uniformly distributed random number from 0.0 to 1.0

java.time Those that handle dates and times. Introduced to eliminate deficiencies in java.util.Date (?)

Handle date with LocalDate, time with LocalTime, date + time with LocalDateTime, and period with Period.

In addition to instantiation by the current time (now) and instantiation with the time set (of), it has various functions such as conversion from a character string (parse) and date addition / subtraction (plus Days).

Recommended Posts

Java Basic Learning Content 8 (Java API)
Java basic learning content 7 (exception)
Java basic learning content 5 (modifier)
Java basic learning content 4 (repetition)
Java basic learning content 3 (operator / ternary operator)
Java basic learning content 9 (lambda expression)
Java basic learning content 2 (array / ArrayList)
Java learning memo (basic)
Java basic learning content 1 (literals, variables, constants)
Java Basic Learning Content 6 (Inheritance / Abstract Class / Interface)
Java learning (0)
For JAVA learning (2018-03-16-01)
Java learning day 5
Java basic grammar
Java Stream API
Java basic knowledge 1
[Java] Basic structure
[Java] [Basic] Glossary
Java basic grammar
Java basic grammar
Java exercises [Basic]
java learning day 2
java learning day 1
Pack API response (java)
Ruby learning points (basic)
Java learning 2 (learning calculation method)
java learning (conditional expression)
java basic knowledge memo
Java learning memo (method)
[Java] Stream API / map
Java Learning (1)-Hello World
[Java] Data type ①-Basic type
Docker-Client Java API Troubleshooting
Java basic date manipulation
JAVA learning history interface
Java basic naming conventions
Java learning memo (interface)
Java learning memo (inheritance)
[Java] Basic method notes
Java basic data types
Basic Java OOps concepts
Learning Java framework # 1 (Mac version)
Basic Authentication with Java 11 HttpClient
Java basic syntax + α trap
Java learning memo (data type)
[Java] Basic statement for beginners
Java Stream API cheat sheet
Books used for learning Java
4th day of java learning
Ruby on Rails basic learning ①
[Java] Thymeleaf Basic (Spring Boot)
Implement Basic authentication in Java
Java learning memo (logical operator)
[Java] Introduction to Stream API
[Beginner] Java basic "array" description
[Java] Stream API intermediate operation
Java Learning 1 (learning various data types)
Recent Java API specification generation
[Java] Basic terms in programming
Java learning memo (creating an array)
[java8] To understand the Stream API