James McGuigan
James McGuigan

Reputation: 8086

What exactly is Java type long long

I know in Java that "int" is a 32 bit integer and that "long" is a 64 integer. I also know that in C "long long" is an integer at least as large as "long" (but implementation specific).

However I have recently come across some Java code using "long long" and wanted to know how exactly it was defined?

Upvotes: 5

Views: 22046

Answers (4)

SATYA PRAKASH SHARMA
SATYA PRAKASH SHARMA

Reputation: 11

"long long" not supported in java

Upvotes: 1

LAMRIN TAWSRAS
LAMRIN TAWSRAS

Reputation: 302

It support
int-16bit
long-32bit
for big number calculation you can use long as well as int .

Upvotes: 0

Neysor
Neysor

Reputation: 3909

I do not know a type called "long long".

it isn't also listed here: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

Upvotes: 2

Amir Afghani
Amir Afghani

Reputation: 38531

There is no such type in Java. Are you sure the code you read was written in Java? Maybe it was a JNI routine that was called into?

Upvotes: 18

Related Questions