Corejava-Basics-Types of Variables in java Part-2

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 104

  • @venkatanarayanavenkatanara7537

    No words sir ur teaching.....
    💗💗

  • @heenashaikh3350
    @heenashaikh3350 2 роки тому +1

    Best again🥰🥰🥰

  • @antishandex8984
    @antishandex8984 2 роки тому +1

    Thank you so much !!!!

  • @aishwaryapandey4286
    @aishwaryapandey4286 4 роки тому +1

    Sir u are awesome....way of teaching is very nice...

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому +1

      Hello Aishwarya.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

    • @aishwaryapandey4286
      @aishwaryapandey4286 4 роки тому

      @@DurgaSoftwareSolutions thanku so much for your kindness...

  • @soumyag2874
    @soumyag2874 4 роки тому +1

    very good teaching and understandable

  • @Manish-lu5ti
    @Manish-lu5ti 5 років тому +2

    You are great

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 років тому

      Hello Manish.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

  • @kataruthirupalaiah2172
    @kataruthirupalaiah2172 4 роки тому +1

    kummeshavu ga Explanation, excellent explanation.

  • @rajkumarsindhe6463
    @rajkumarsindhe6463 4 роки тому +1

    Very nice explanation sir..

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому

      Hello RajKumar.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

  • @ambargupta9213
    @ambargupta9213 3 роки тому

    Bahut sandar padate ho.
    Love u sir

  • @sheikhafsanatasnim7379
    @sheikhafsanatasnim7379 4 роки тому +1

    Jus wow

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому

      Hello Sheikh.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

  • @ankitasrivastava3492
    @ankitasrivastava3492 7 років тому

    thanks a lot.....
    supbbbb tutorial ...

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  7 років тому +1

      Hi Ankita. Thank you very much for your feedback

    • @ankitasrivastava3492
      @ankitasrivastava3492 7 років тому

      in static ..
      can we not call the m1 method using class name ???like
      test.m1();
      plz tell me

  • @jovitalobo1273
    @jovitalobo1273 7 років тому

    Ratan Sir, You are excellent. Thanks for your help.

  • @sharmasinamerica5229
    @sharmasinamerica5229 8 років тому

    very nice videos

  • @ravikumarachary3638
    @ravikumarachary3638 6 років тому +4

    Ratan sir, because of you i am able to learn JAVA. Hats off the way you teach , you are the best trainer i have ever seen in my IT career of 12 years :-)

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      Hello Ravikumar,
      Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      CoreJava by Ratan
      goo.gl/7oC3T3
      Advanced Java jdbc by Ratan
      goo.gl/QymTy4
      Advjava tutorials - JSP by Ratan
      goo.gl/hG2hUC
      Adv java servlets tutorial by ratan
      goo.gl/a9LYoQ

    • @lonehumi8350
      @lonehumi8350 5 років тому +1

      Me tooo

  • @Manish-lu5ti
    @Manish-lu5ti 5 років тому +6

    Don't believe in theoriotical, believe in practical------------ i'm impressed

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 років тому

      Hello Manish.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

  • @gandharvmehra8611
    @gandharvmehra8611 7 років тому

    that is amazing way of teaching. Ratan Sir you are Seriously Object class(most imp) of DurgaSoft.

  • @Tu-nak-tu-nak
    @Tu-nak-tu-nak 7 років тому

    Simple to learn. Thank you Ratan. Eg of MADE IN INDIA product Durgasoft.

  • @rizwanbecs
    @rizwanbecs 7 років тому

    awesome Ratan sir you are too good...I did Engineering but never could understand Java but by listening to your videos i am able to understand......Thanks.. awesome

  • @nsirisha5831
    @nsirisha5831 4 роки тому +1

    Good morning sir i have a dought that in static variables we can access by using class file bt u have sad that to call m1 method u have created an object ...plz clarify my dought

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому

      Hello Sirisha.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @arnavpatil583
      @arnavpatil583 4 роки тому

      If method is instance method then compulsory you have to create object of class on the ref you have to call instance method

  • @CatTrainerYT
    @CatTrainerYT 7 років тому

    ratan sir is best teacher!

  • @shahiljustshahilrahman6459
    @shahiljustshahilrahman6459 7 років тому

    Awesum... It clears my doubt. Thanks.

  • @phanikumar4868
    @phanikumar4868 5 років тому +1

    Hi Ratan sir how to I get your private videos access.. Please help me

  • @krishnamohan7242
    @krishnamohan7242 6 років тому +1

    Superb explanation ratan sir I want all ratan videos of core java so how??

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому +1

      Hello Krishna. For all Core java videos,
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28

    • @motupallichaitanya3775
      @motupallichaitanya3775 6 років тому

      just type in youtube search as " core java basics by ratan "...you can see all videos in one playlists( in order)

    • @krishnamohan7242
      @krishnamohan7242 6 років тому

      Yaa but some videos are private yarrr

  • @lonehumi8350
    @lonehumi8350 5 років тому +2

    Thnx Sr... Smiled at 3. 36....
    Well explanation.. No words.. Actually me from Kashmir very thankful to u Sr.. As due to prevailing conditions in Kashmir we don't get knowledge from colleges.. Due to hartal etc.. Thnx Sr for such excellent teaching service

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 років тому

      Hello Lone Humi.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

  • @manojkgowda6487
    @manojkgowda6487 3 роки тому +1

    Thank you so much Ratan Sir u made the concept easy 😍😍😍❤️. The way you teach is 🔥🔥🔥.

  • @mazharmohammed6543
    @mazharmohammed6543 7 років тому

    one time is tills come to run time.... Thanks Ratan

  • @jonav8477
    @jonav8477 8 років тому

    I have seen tens of video tutorials about Java on internet,but this is so far the best tutorial ever ! thank you mr Ratan,God Bless You and thanks to Durgasoft for providing these videos to us,

  • @sriharshamishra5167
    @sriharshamishra5167 5 років тому +1

    Thank you sir...

  • @ArunKumarbethi
    @ArunKumarbethi 9 років тому

    hats off your are fantastic excellent explanation

  • @saransonkamble9818
    @saransonkamble9818 8 років тому

    Outstanding..! You have built my foundation ,,,Thanks

  • @ahmidahmid9303
    @ahmidahmid9303 6 років тому +2

    huge amount of information thank you

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      Hello Ahmid libya.
      Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      CoreJava by Ratan
      goo.gl/7oC3T3
      Advanced Java jdbc by Ratan
      goo.gl/QymTy4
      Advjava tutorials - JSP by Ratan
      goo.gl/hG2hUC
      Adv java servlets tutorial by ratan
      goo.gl/a9LYoQ

  • @motupallichaitanya3775
    @motupallichaitanya3775 6 років тому +1

    excellent class...thanks.... I am the salesforce developer. we need core java basics to develop applications in my platform. these videos are very helpful to me

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      Hello Chaitanya.
      Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      goo.gl/7oC3T3

  • @techzone2891
    @techzone2891 8 років тому

    very nice video Brother, from Bangladesh

  • @venkateshkolli
    @venkateshkolli 7 років тому

    Wonderful faculties(c/o ameerpet),clear explanation in simple way,i think because of this strong foundation majority telugu ppl are rocking in IT industry all over the world :)

  • @vusikelasatheesh4074
    @vusikelasatheesh4074 6 років тому +4

    sir your teaching style is fabulous sir, in never seen my carrier. thanks sir once again

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      Hello Sateesh.
      Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
      You can view all other Core Java Videos by Ratan in the following link:
      CoreJava by Ratan
      goo.gl/7oC3T3
      Advanced Java jdbc by Ratan
      goo.gl/QymTy4
      Advjava tutorials - JSP by Ratan
      goo.gl/hG2hUC
      Adv java servlets tutorial by ratan
      goo.gl/a9LYoQ

  • @lakshayahlawat8421
    @lakshayahlawat8421 7 років тому

    we are able to acess static variable in instance method

    • @Navii-CN
      @Navii-CN 6 років тому

      of course...by using class name we can access static variables in instance method..
      ex: class abc
      {
      static int a=20;
      public void g1()
      {
      System.out.println(abc.a);
      }
      }

  • @pinkybhat6710
    @pinkybhat6710 7 років тому

    in-depth explanation of concepts, Thank you Ratan Sir !

  • @IgiveyouNONE
    @IgiveyouNONE 8 років тому

    Phenomenal explaining, good sir. Thank you.

  • @compchemistry9201
    @compchemistry9201 6 років тому +1

    Ratan sir thank you for your best effort to make java easy. I wish you best of of everything. You know how to teach.

  • @taruntripathi4306
    @taruntripathi4306 7 років тому

    fully details. nice

  • @tangudurohit3381
    @tangudurohit3381 4 роки тому +1

    What if we declared the variable in local but want to access the variable in static method??

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 роки тому +1

      Hello Rohit.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @hamzarizwan777
    @hamzarizwan777 7 років тому

    Awesome Tutorial..Great man
    Love From Pakistan

  • @manjunathakullai6314
    @manjunathakullai6314 7 років тому

    thank you sir

  • @nidhinikustiwari865
    @nidhinikustiwari865 8 років тому

    Hlo ratan sir
    Exception handling not cmplt video pls send all core video ur video vry gud

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  8 років тому

      Hi Nidhinikus Tq...we kept some videos private.. Plz contact our team durgasoftonlinetraining@gmail.com they will assist

  • @jithus2263
    @jithus2263 8 років тому

    if i declare a variable inside main...then how can i call it outside method?plz

  • @ArunKumarbethi
    @ArunKumarbethi 9 років тому +1

    I understood easily

  • @divyadhone4557
    @divyadhone4557 7 років тому

    plz upload exception handling in java

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  7 років тому

      Hi Divya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627

  • @PardeepKumarbindass
    @PardeepKumarbindass 8 років тому

    Excellent Tutorial, Thanks a lot lot & Lots of Sir.
    I have a query. Suppose we declare a Local Variable and do some calculation and give and output which is again stored in a variable inside the method. Now i have to use this Variable value in some other methods say main Method or other method, How can i do this thing.
    Thanks.

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  8 років тому

      Hi Pardeep kumar we will discuss the form and meaning of writing Java classes and Javadoc. .... In fact, I have put these methods in the Prompt class; also, one calls the other so ... a simply-namedmethod (with the parameters needed to do the calculation) ... Besides its single parameter, thismethod declares two local variables ...

    • @PardeepKumarbindass
      @PardeepKumarbindass 8 років тому

      Sir not getting you. Can u please explain. Thanks

    • @asterrisk2829
      @asterrisk2829 7 років тому

      you can call the method using some other method and then return the required variable's value to the caller method.
      So now you can store the returned value in some other variable and then use it.
      Hope this helps :)

  • @sumanth570
    @sumanth570 8 років тому

    supeb !!!

  • @saiprudhvi6269
    @saiprudhvi6269 6 років тому +2

    sir when I am declaring variables with static keyword and calling it in the static method by using an object it is printing without any error. can you tell me the reason behind it?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 років тому

      Hello Sai Prudhvi.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28

    • @bathalavamsireddy950
      @bathalavamsireddy950 5 років тому

      Call with class name

    • @arnavpatil583
      @arnavpatil583 4 роки тому

      We call static variable either class name or object reference but recommended to call class name always

  • @sumitrakamma113
    @sumitrakamma113 7 років тому

    Iam always follow s u

  • @ajayvardhan4417
    @ajayvardhan4417 9 років тому +1

    amazing explination

  • @richcohen5936
    @richcohen5936 7 років тому +5

    I have one question. If the Static variable that we want to access reside on the same source file under same class, then it seems like we don't even need to use class-name.variable to call the variable. We can just directly call them be it static or instance area. But we need to use class name if we are using a different class inside or another source file. Then only you need to use class-name.static-variable.

  • @AarijAliFBR
    @AarijAliFBR 7 років тому

    god bless u

  • @adityaghosh8601
    @adityaghosh8601 7 років тому

    what is non heap memory

    • @saikumarkuna2368
      @saikumarkuna2368 7 років тому

      Non Heap Means method area According to my understanding.......
      that means mainly we have three areas (1)method area (2)heap area (3)stack area................
      In this Method area can access static variable,,static method,,non static method.
      In heap area non static variable and object creation is performed .
      in Stack area local Variable is accessed.
      thank u bro :-)

  • @ankitasrivastava3492
    @ankitasrivastava3492 7 років тому

    in static ..
    can we not call the m1 method using class name ???like
    test.m1();

  • @phanimopuri
    @phanimopuri 8 років тому +1

    sir .. class type lo Test t variable example ga cheparu kada adi eaa datatype ki vastundisir either int or charecter

    • @jaysonm6882
      @jaysonm6882 6 років тому

      phani phani user defined data type

  • @fathimarahman2023
    @fathimarahman2023 5 років тому +2

    sir, your teaching is very smart but still need to know, why we are using different type of variable. kindly advice me

  • @rajeshnayak8492
    @rajeshnayak8492 7 років тому

    I could not understand test t thing, how t. a or t. b gives the value of a and b respectively?

  • @vinayTshetty
    @vinayTshetty 9 років тому +2

    supeeeeeeeer,,.
    please do upload oops concept videos ratan sir..

  • @sachindevatar651
    @sachindevatar651 7 років тому

    please open the sub branch of durgasoft in Bangalore sir.

  • @avinashtiwari5905
    @avinashtiwari5905 7 років тому

    Hi Sir,
    i am able to acess static variable in below example without using class name in instance method ...please comment
    class Variable {
    static int a=40;
    static int b=50;
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    Variable v=new Variable();
    System.out.println(Variable.a);
    System.out.println(Variable.b);
    v.m1();
    }
    void m1(){
    System.out.println(a);
    System.out.println(b);
    }
    }

  • @sunnykumar-fy2pc
    @sunnykumar-fy2pc 8 років тому

    what meaning of non heap memory storage in static variable. so what is called.... non heap

  • @Pinnamanenisatishkumar
    @Pinnamanenisatishkumar 8 років тому +1

    3 point in instance variable--
    memory is allocated when object is created ..
    my question is-- if i do not want create object. how the memory allocated for the instance variable.

    • @TheAmenine
      @TheAmenine 8 років тому +1

      You cannot allocate memory to instance variable if you don't create an object.
      Reason is ..
      When you are accessing Instance variable inside static method you are creating an object and with that object you are accessing instance variable , So object creation is necessary.
      And when you are accessing Instance Variable inside Instance method you need to call that user defined instance method through main method so to call instance method through main method you again need to create an Object to access the instance method.
      So Object creation is necessary in every case according to my understanding. :)

    • @Pinnamanenisatishkumar
      @Pinnamanenisatishkumar 8 років тому

      Thank you

  • @sumitrakamma113
    @sumitrakamma113 7 років тому

    Ur god to me

  • @udhaya7206
    @udhaya7206 8 років тому

    static variables are stored in heap memory only but in permgen which is a section of heap memory. Its not non heap as you said.

  • @MaheshBabu1989
    @MaheshBabu1989 7 років тому

    Hello Ratan sir, it was a nice video with good examples..
    When i try to execute the same examples , i observed that
    1. without mentioning the class name also we can call the static variables in static main method..
    public class Java_Static_Variables {
    static int a=10;
    static int b=5;
    public static void main(String[] args) {
    System.out.println(a);
    System.out.println(b);
    }
    Output::
    10
    5
    2. without mentioning the class name also we can call the static variables in instance user defined method..
    public class Java_Static_Variables {
    static int a=10;
    static int b=5;
    public static void main(String[] args) {
    System.out.println(a);
    System.out.println(b);
    Java_Static_Variables x=new Java_Static_Variables();
    x.m1();
    }
    //Instance method
    public void m1()
    {
    System.out.println(a);
    System.out.println(b);
    }
    Output::
    10
    5
    10
    5
    please confirm and correct me if any mistakes.