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

Methods for reading XML in Java

XML, well-formed XML and valid XML

ArrayList and LinkedList in Java, memory usage and speed