• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

Java Equivalent to C++ Types

Only C++ 'fundamental' types are listed here, not library types.

C++ Java
int/signed int
long/long int/signed long/signed long int

long long/long long int
signed long long/signed long long int

short/short int
signed short/signed short int

unsigned/unsigned int
unsigned long/unsigned long int

unsigned short/unsigned short int
unsigned long long/unsigned long long int

bool
char/signed char
unsigned char
wchar_t
float
double/long double
int
int (may convert to 'long' on some systems)

long
long

short
short

no unsigned types in Java
no unsigned types in Java

no unsigned types in Java
no unsigned types in Java

boolean
byte (signed byte)
no unsigned types in Java
char
float
double


Use C++ to Java Converter to convert from C++ to Java.     

Additional resource: Java and C++ Equivalents


Copyright © 1997 – 2017 Tangible Software Solutions Inc.