Skip to content

Commit

Permalink
Merge pull request JackyAndroid#8 from vjs3/master
Browse files Browse the repository at this point in the history
Improved English for question 14.
  • Loading branch information
JackyAndroid committed Aug 19, 2016
2 parents 9455409 + c34ec1c commit e96b98d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ http://www.jdon.com/designpatterns/designpattern_State.htm

**14.How many bits and bytes does each of short, int, long, char, float, double contains in Java?**

1 byte contains 8 bits
1 byte contains 8 bits, therefore

short 16 2
short - 16 bits or 2 bytes

int 32 4
int - 32 bits or 4 bytes

long 64 8
long - 64 bits or 8 bytes

float 32 4
float - 32 bits or 4 bytes

double 64 8
double - 64 bits or 8 bytes

char 16 2
char - 16 bits or 2 bytes

**15.What is the difference between int and an Integer in Java?**

Expand Down

0 comments on commit e96b98d

Please sign in to comment.