Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes
asked ago in CSC211_Winter2018 by (255 points)

3 Answers

+3 votes

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

answered ago by (3.7k points)
+2 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 ago by (1k points)
0 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 ago by (2.6k points)
...