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

Transaction isolation levels in database

Logical and bitwise operations and operators in Java

IN, BETWEEN, LIKE operators in SQL