Java Null Keyword - How To Use Null in Java #44

Опубликовано: 28 June 2026
на канале: Alex Lee
31,233
927

$1,500 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE1500. See if you qualify for the JOB GUARANTEE! 👉 https://bit.ly/3HX970h

The java null keyword lets you make a String or object empty. In java, null is super important, and in this video, I teach you all about it!

String a = null;

Now if you try to use a method on "a", you will get a null pointer exception. You can't make a primitive type null.

I hope you enjoyed this java null keyword tutorial!

Full Java Tutorial For Beginners Playlist:    • Full Java Course by Alex Lee  
Free Tips: https://bit.ly/3U6HXcb

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee