Java Programming Tutorial – 48 – final

///Java Programming Tutorial – 48 – final

Java Programming Tutorial – 48 – final

FavoriteLoadingAdd to favorites

Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

source

Java468x60
By |2020-08-27T09:06:41+00:00August 27th, 2020|Java Video Tutorials|29 Comments

29 Comments

  1. Epoch August 27, 2020 at 9:06 am - Reply

    We lost a lot of people after that difficulty spike 0-0

  2. Hossam Nasser August 27, 2020 at 9:06 am - Reply

    In Some Tutorials While We Are Using Classes, Methods, Constructors And All These Stuff, Sometimes We Use The String Format And Sometimes We Don't. And I Don't Get It When Do We Actually Need To Use It And When We don't Need to ?

  3. himanshu gupta August 27, 2020 at 9:06 am - Reply

    Can somebody tell me the concept of to string

  4. Jovindio Wieuse August 27, 2020 at 9:06 am - Reply

    1:55 so like marriage?

  5. JmpCallRet August 27, 2020 at 9:06 am - Reply

    Nice joke you "fish" 😀

  6. Keepo420 August 27, 2020 at 9:06 am - Reply

    Am i too late for the fantasy football?

  7. Erick Fenstermaker August 27, 2020 at 9:06 am - Reply

    why wouldn't you just make every variable public? why make it private?

  8. Brian Dacallos August 27, 2020 at 9:06 am - Reply

    Finally i got here

  9. luna s August 27, 2020 at 9:06 am - Reply

    why the original sum=0?

  10. setnorm426 August 27, 2020 at 9:06 am - Reply

    Is it too late to get in on that fantasy football action?

  11. Caryen Cheong August 27, 2020 at 9:06 am - Reply

    Hi. How do the sums being displayed out by writing System.out.printf("%s", tunaObject); ?

  12. İbrahim YEŞİLAY August 27, 2020 at 9:06 am - Reply

    QUESTION= You say FINAL can not change anywhere! But if you make a new Object lets say tuna tunaObject2 = new tuna(15); then final is gonna be 15 after this point in tunaObject2 right!!! So actually I could change it some how or?

  13. Rohil Javeri August 27, 2020 at 9:06 am - Reply

    fantasy football?

  14. Mushailov Mariana August 27, 2020 at 9:06 am - Reply

    There is a mistake here. NUMBER is not visible cuz it's declared as private. Change it to public then u will see the right error message about changing its value.

  15. meow peow August 27, 2020 at 9:06 am - Reply

    hello, how is about fantasy football?

  16. Taxhidin Kadiri, Android Developer August 27, 2020 at 9:06 am - Reply

    I have learnt many syntax of Java, God to give all the best for your work. You are my teacher.

  17. Tarun Mathur August 27, 2020 at 9:06 am - Reply

    You still up for fantasy football?

  18. zeldajerk August 27, 2020 at 9:06 am - Reply

    Im assuming it might be too late to join bucky in FF.

  19. Warsame Osman August 27, 2020 at 9:06 am - Reply

    9 years later and its still 2 🙁

  20. sourabh ch August 27, 2020 at 9:06 am - Reply

    You did not give sum an initial value as 0 why did the computer assume sum to be 0?

  21. James Maxa August 27, 2020 at 9:06 am - Reply

    i did a never ending-loop by accidnet cuz in the for loop i had put:
    for(int i=0;1<5;i++)
    did you see the mistake?
    i put "1<5" instead of "i<5"
    im already at sum = 5 billion

  22. Andy Yang August 27, 2020 at 9:06 am - Reply

    very nicely explained tutorial <3

  23. Farhad Ba-Ali August 27, 2020 at 9:06 am - Reply

    The constants are in CAPS… K..K..K.
    K..K, that's how you can remember it xD

  24. Rangana Fernando August 27, 2020 at 9:06 am - Reply

    it has to be fish or this program won't work.
    😆😆 Savage Leval 99.999% 😆😆

  25. __ August 27, 2020 at 9:06 am - Reply

    Lol, this error when it says field not visible isn't because of the final, it’s because NUMBER Is a private variable…

  26. Maynard Aquino August 27, 2020 at 9:06 am - Reply

    I changed private final NUMBER to public final NUMBER.. the error message is the field tuna.NUMBER cannot be assigned.. yeah, u can't change a 'final'.

  27. Jack Kirkland August 27, 2020 at 9:06 am - Reply

    Just throwing this out there, but I'm a comp sci major in college and your tutorials from like 46 – 55 were super helpful in explaining some of these java concepts. So thanks a lot man and good shit

  28. Manveer Singh August 27, 2020 at 9:06 am - Reply

    number is private thats why it is not visible, not because it is final

  29. Sachin Kumar August 27, 2020 at 9:06 am - Reply

    Though he explained the theory correct, his code doesn't really explain the significance of final.
    For better understanding try this :
    package sachin;

    public class Ocean {
    public final int salmon;

    public Ocean(){
    salmon =1;
    }
    public void setFish(int x) {
    this.salmon = x;//this will throw an error that final field Ocean.salmon can't be assigned.
    }
    }
    Error is thrown in the set method but not in constructor because compiler knows that a constructor can be invoked once per object but the method can be called multiple times.

Leave A Comment

*