The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security

      THE unique Spring Security education if you’re working with Java today

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

    • View All Spring Courses

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

    • Learn Mockito

      Enhance your unit tests through practical mocking

    • View All Courses

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Category upJava

Java Numbers » Java Primitives

The Number class is a superclass of numeric data types in Java. Learn how to work with different Number implementations through the list of guides below.

  • Math (62)
  • Java Integer (37)
  • Number Conversions (32)
  • Floating Point Numbers (29)
  • Java BigDecimal (22)
  • x Java Primitives (13)
  • Random (8)
  • Exception (4)
  • Apache Commons Math (4)
  • Apache Commons Lang (3)
  • String Conversions (3)
  • Guava (3)

>> Convert long to int Type in Java

  • popular

>> Comparing Long Values Using Collections.sort()

>> Convert From int to short in Java

>> Difference Between 1L and (long) 1

>> Generating Unique Positive long Using UUID in Java

>> Converting from float to BigDecimal in Java

>> Convert int to Long in Java

>> Does Java Read Integers in Little Endian or Big Endian?

>> Integer.class vs Integer.TYPE vs int.class

>> Java “int/char Cannot Be Dereferenced” Error

>> Comparing Long Values in Java

>> List of Primitive Integer Values in Java

>> Changing the Order in a Sum Operation Can Produce Different Results?

Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • Login Course Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Spring Framework Introduction
  • All About String in Java
  • Security with Spring

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo