TYPES OF VARIABLES - JAVA PROGRAMMING | Instance Variables | Static Variables | Local Variables

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 22

  • @OpinionOfX
    @OpinionOfX 2 ปีที่แล้ว +4

    👌

    • @SudhakarAtchala
      @SudhakarAtchala  2 ปีที่แล้ว +1

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @ajinkyajagtap3063
    @ajinkyajagtap3063 2 ปีที่แล้ว +1

    Good explain 👍 keep it up..

    • @SudhakarAtchala
      @SudhakarAtchala  2 ปีที่แล้ว

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @praveenkumarkathi1743
    @praveenkumarkathi1743 3 หลายเดือนก่อน

    Super sir and good explanation 👌👌👌

    • @SudhakarAtchala
      @SudhakarAtchala  3 หลายเดือนก่อน

      Thanks. Please like the video, subscribe to the channel, and share it with your friends. Thanks in advance.

  • @gowthamadari2029
    @gowthamadari2029 5 ปีที่แล้ว +5

    Continue to work and upload videos sir .one day ur hardwork will sure pay and u will reach 1M subscribers

    • @SudhakarAtchala
      @SudhakarAtchala  5 ปีที่แล้ว +6

      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.

  • @ismartsrinivasraopalaparth6640
    @ismartsrinivasraopalaparth6640 ปีที่แล้ว +1

    Thank u so much sir.

  • @premchavan9067
    @premchavan9067 4 หลายเดือนก่อน

    Thankyou 🎉❤

    • @SudhakarAtchala
      @SudhakarAtchala  4 หลายเดือนก่อน

      You’re welcome 😊 Plz like the videos and if possible share with your friends. Thanks in advance.

  • @twinklegarg1413
    @twinklegarg1413 3 ปีที่แล้ว +1

    Sir can we declare other methods also in a class that consist of main function or only main function?

    • @SudhakarAtchala
      @SudhakarAtchala  3 ปีที่แล้ว

      We can declare other methods in class. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

    • @twinklegarg1413
      @twinklegarg1413 3 ปีที่แล้ว

      @@SudhakarAtchala sir i have already subscribed to ur channel

  • @rahulshami2956
    @rahulshami2956 3 ปีที่แล้ว +1

    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);")

    • @SudhakarAtchala
      @SudhakarAtchala  3 ปีที่แล้ว +1

      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.

    • @rahulshami2956
      @rahulshami2956 3 ปีที่แล้ว

      @@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);

    • @SudhakarAtchala
      @SudhakarAtchala  3 ปีที่แล้ว +1

      @@rahulshami2956 k . Then access static variable using class name.

    • @rahulshami2956
      @rahulshami2956 3 ปีที่แล้ว

      @@SudhakarAtchala tried that too sir. I think the problem is not with the static variable but with instance variable.

  • @saineeraj1326
    @saineeraj1326 3 ปีที่แล้ว

    Sir what is o/p of last program??