Submitted Questions

  • What is the default value of local variable?

    Kishan

    • Oct 28th, 2016

    0 is default value of local variable and also global variable and character do not set anything by default..

    Gaurav Arora

    • Sep 5th, 2011

    JVM never assigns any default value to local or method variables. You have to initialise these variables before using them. Any attempt to use these variables without initialising them will result in ...