Like Padma say you need to initialize before its use. So keep in mind every local variable need to initialize before its use. Local variable means any variable you declare in side method. If you declare any variable in the class it will be initialized by default value if you don�t initialize. Hope this and Padma's reply help you to understand better. Good Luck!