Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I forgot to add char so here it is:
--> char myChar = "a" [It can hold up only 1 character like a, b, %, & , $, k etc.] -
Byte is 0 up to 127 (128 possibilities).
char myChar = 'a';
What's the point anyway? This is basics stuff, right? I really don't see who's getting any help from this... -
@Koppaster Maybe it isn't a good idea to give wrong info to people learning Java...
Related Rants
Here are some of the variable types in java if someone needs it :)
-String myString = "Hello";
//integeres
- Byte myByte = 127; [It can hold up to 128
-Short myShort = 530; [up to 32767] -> 2 bytes
-int myInt = 8021; [up to 2,147,483,647] -> 4 bytes]
-long myLong = 213134; [ up to 9,223,372,036,854,755,807] -> 8bytes
//Decimal Numbers
-float myFloat = 3.14f;
-double myDouble = 23.45;
P.S.
I hate double... idk why
Bye
rant
string
java
integers
variables
devrant