☕
Java
CtrlK
  • Hello World
  • IntelliJ IDEA
  • if-else statement
  • arithmetic expression
  • primitive types
  • primitive type range
  • Type casting
  • Char
  • String
  • Operators
  • Array
  • Switch
  • Prime Number
  • Continue vs Break
  • Inputs
  • OOP
  • Inheritance
  • Composition
  • Encapsulation
  • Polymorphism
  • Override vs Overloading
  • Random
  • Array assign
  • ArrayList
  • data-structures
  • Interface
  • Inner class
  • Abstract
  • Resources
Powered by GitBook
On this page

primitive types

There are eight primitive types in Java.

number

whole number

byte

short

int

long

fractional number

float

double

Character

char

Logic

boolean

Previousarithmetic expressionNextprimitive type range

Last updated 2 years ago