≡ Menu

Podcast Episode 9 – Primitives

Click Here to Subscribe on iTunes

– Building blocks of the Java Programming language
– In Java, everything is an Object – except primitives
– Primitives exist because they are more efficient than their Object counterparts, but they are less flexible


Primitive Object Counterpart
int Integer
double Double
float Float
char Character
boolean Boolean

– Primitives declares as instance variables get default values:

Primitive Default Value
int 0
double 0.0d
float 0.0f
char u\0000
boolean false

– The Primitives’ Object Counterparts don’t get a default value, they are just null if they aren’t assigned a value


Please go through this useful document from Oracle (the owners of Java) and read up on the finer points of Java Primitives, <sarcasm>it’s just captivating reading</sarcasm>:


Also, as promised, here’s a video that shows exactly how you would use primitives in a coding situation from JavaVideoTutorials.net

{ 3 comments… add one }
  • Tabias Pittman December 17, 2012, 2:46 pm

    I’ve been really busy lately, I haven’t been able to keep up with any of this. I’ll definitely get back to it when I can.

  • Bryce April 25, 2014, 9:42 am

    Is there a download link to this podcast? I’m browsing this page on my android and I don’t see an mp3 link like for the other podcasts. Thanks!

    • Trevor Page May 13, 2014, 1:01 pm

      For some reason my podcast plugin isn’t working correctly. I’ve modified this page to include a download link for the MP3 file, or you can click the subscribe link to listen to the show directly on iTunes.

      Thanks for bringing up this issue Bryce!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.