0
What are the different types of variables in java
2 Respostas
+ 1
Java has the same types like C (without the struct type): char / int / float / double / boolean
Whereas C is close to hardware (and thus make use of pointers to access memory directly) Java comes with Object Orientation that makes use of /comes with classes like String or Enumerable. However these are not considered types but classes (and therefore written with a capital letter). Java has a whole bunch of those classes ! Hope this helps, happy coding.