Easy way to remember 8 primitive types in Java


 Hey friends,

Just happened to be revisiting the iconic book "Head First Java" and found those.

Though you need not remember these if you have been coding in Java for a while. However sometimes, Software Engineers get asked about the 8 primitive types in Java.

Here is the simple trick to remember these.

Be Careful! Bears Shouldn't Ingest Large Furry Dogs.

  1. Boolean
  2. Char
  3. Byte
  4. Short
  5. Int
  6. Long
  7. Float
  8. Double.

Share it with your friends and spread the word!

Post a Comment

0 Comments