Hai gowtham, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
sir i guess there's some error in the static variable program(error:" non-static variable i cannot be referenced from a static context System.out.println("i= "+i);")
If main ( ) and static variable is declared under a same class then class name is optional while accessing static variable. For full clarity refer static members video th-cam.com/video/3bFUwqmne8Q/w-d-xo.html Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@@SudhakarAtchala sir i tried everything but the compiler is still throwing the same error: non-static variable i cannot be referenced from a static context System.out.println("i= "+i);
👌
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Good explain 👍 keep it up..
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Super sir and good explanation 👌👌👌
Thanks. Please like the video, subscribe to the channel, and share it with your friends. Thanks in advance.
Continue to work and upload videos sir .one day ur hardwork will sure pay and u will reach 1M subscribers
Hai gowtham, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Thank u so much sir.
So nice of you
Thankyou 🎉❤
You’re welcome 😊 Plz like the videos and if possible share with your friends. Thanks in advance.
Sir can we declare other methods also in a class that consist of main function or only main function?
We can declare other methods in class. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@@SudhakarAtchala sir i have already subscribed to ur channel
sir i guess there's some error in the static variable program(error:" non-static variable i cannot be referenced from a static context
System.out.println("i= "+i);")
If main ( ) and static variable is declared under a same class then class name is optional while accessing static variable. For full clarity refer static members video
th-cam.com/video/3bFUwqmne8Q/w-d-xo.html
Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@@SudhakarAtchala sir i tried everything but the compiler is still throwing the same error:
non-static variable i cannot be referenced from a static context
System.out.println("i= "+i);
@@rahulshami2956 k . Then access static variable using class name.
@@SudhakarAtchala tried that too sir. I think the problem is not with the static variable but with instance variable.
Sir what is o/p of last program??
10