0

What are the different types of variables in java

16th Jan 2019, 12:41 AM
Binay Kumar Jha
Binay Kumar Jha - avatar
2 Respostas
16th Jan 2019, 1:56 AM
David Ashton
David Ashton - avatar
+ 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.
16th Jan 2019, 6:54 AM
Felix Pernat
Felix Pernat - avatar