Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+19 votes
asked in CSC211_Winter2018 by (1 point)

3 Answers

+12 votes

There’s actually 4; int, double, char and Boolean.

answered by (1 point)
+10 votes

Really, there are more than 4, but those are the four that we've mentioned so far in CSC211. For the record, the others are byte, short, long, and float.

answered by (1 point)
+6 votes

There are 8 primitive data types in java but the ones we learnt are Char,int,boolean,double for single character,integer, logical values and real numbers respectively!

answered by (-499 points)
...