long keyword in java

” long ” is a Java primitive type. A long variable can store a 64−bit signed integer. Example long amount=4560; long randomNumber=45617l; We can specify long number either with suffix “l” or “L” otherwise its considered as integer value. Note: In the first example value 4560 is considered as integer value but its assigning to […]

Share this article on