What values are the default variables initialized to

  • Numbers are initialized to 0 or 0.0;
  • char - \u0000;
  • boolean - false;
  • Objects (including String) - null.

Read also:


Comments

Popular posts from this blog

Rocks and Diamonds

ArrayList and LinkedList in Java, memory usage and speed

Types of indexes in database