Core Java with OCJP/SCJP: Language Fundamentals Part-11 || Types of Variables :part-2

Java

Video is ready, Click Here to View ×


https://youtu.be/HYAosZptldA?list=PLd3UqWTnYXOkWWJd8flj3echGYm3y5dXo

41 thoughts on “Core Java with OCJP/SCJP: Language Fundamentals Part-11 || Types of Variables :part-2

  1. Excellent explanation sir. But I got confused in the below example:

    class Test {

    int x= 10 // Instance primitive

    static string s = "durga"; //why this is static reference variable not static primitive

    psvm (String args[])
    {

    int [] y = new int [3];

    }
    }

  2. There is Problem in that , if by default modifier of local variable is final, then how can i assign different value in the very next line, but if i explicitly mention final before variable, then i am unable to assign value ,can u clarify on that

  3. There is Problem in that , if by default modifier of local variable is final, then how can i assign different value in the very next line, but if i explicitly mention final before variable, then i am unable to assign value , can u clarify on that

  4. There is Problem in that , if by default modifier of local variable is final, then how can i assign different value in the very next line, int a=20;a=299; giving output 299, but if i explicitly mention final before int a, then i am unable to assign 299 to a,, there is bug i think , can u clarify on that

  5. There is Problem in that , if by default modifier of local variable is final, then how can i assign different value in the very next line, int a=20;
    a=299;
    sop(a); giving output 299, but if i explicitly mention final before int a, then i am unable to assign 299 to a,, there is bug i think in jdk,, can u clarify on that

  6. Sir please tell me the answer u said that instance variable is not thread safe how it's possible because here also separate copy of instance variable is created. It should be thread safe in my view. I am confused..

  7. in 10th video last program even we are updating t1.y=999 but if we are printing t2.y it will shows 20. that means instance variables are Thread-Safe .But you said instance variables are not Thread Safe. Can anyone give explanation? please

  8. Sir all videos are too awesome to uderstand cz your way of teaching its too aweome i salute you sir i think now i get a job pakka…..i dont know previous time otherwise i joinded ypur institute now i joined coching at jlc banglore but sir thanku so much you are so awesome sir durga sir is the best teacher in the world i salute you and you are my best teacher in the world

  9. class Test
    {
    public static void main (String args[])
    {
    int x;
    if(args.length >0) //(but if we are adding ';' at the end of the line it is giving output at 10)
    {
    x=10;
    }
    System.out.println(x);
    }
    }

    Please, Clear the doubt.

  10. The level of depth that you go into your videos sir , is simply amazing..We respect you , It's an honour learning from you … Thank you for keeping videos available for everyone. Excellent

  11. for (int j = 0; j<1; j++)

    System.out.println(j);

    well SIR what did i observed that a single statement is allowable for

    after for while scope of scope definition ?
    for (int j = 0; j<1; j++)

    System.out.println(j);

    i=i+j;// CE

    while second statement would be error ? i am bit confused in that is a single statement is allowable

Leave a Reply

Your email address will not be published. Required fields are marked *