Core Java With OCJP/SCJP: Innerclass Part- 4||normal java class Vs anonymous inner class

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

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

  • @rocky23121989
    @rocky23121989 8 ปีที่แล้ว +22

    Thanks a lot for every video of yours. You have so much patience while teaching.
    I really appreciate your effort.

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

    one of the best Teacher of SCJP @DurgaSir

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

      Hello Friend.
      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 with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

  • @ranveervaghela7030
    @ranveervaghela7030 2 หลายเดือนก่อน +2

    Completed watching on Sept-09, 2024 at 7.54 PM :)

  • @shivamtripathi1148
    @shivamtripathi1148 4 ปีที่แล้ว +6

    real guru on the floor💯💯

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 ปีที่แล้ว

      Hello Shivam Tripathi.
      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 with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

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

    Sir, Normal or Regular inner class is allowing to declare static member sir. For Example
    public class Test {
    class StaticNestedClass {

    public static void main (String ars[]) {

    System.out.println("static nested inner class");
    }
    }

    public static void main(String ar[]) {
    System.out.println("Test class printer");

    }
    }
    Output:
    C:\Users\user\Documents\mycode\scjp\src>javac Test.java
    C:\Users\user\Documents\mycode\scjp\src>java Test
    Test class printer
    C:\Users\user\Documents\mycode\scjp\src>java Test$StaticNestedClass
    static nested inner class

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

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

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

    103th video completed❤

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

    crystal clear explaination ......

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Pratap.
      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 with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

  • @azazpatel8991
    @azazpatel8991 7 ปีที่แล้ว +2

    Thanks sir, your video awesome and i really appreciate your teaching.

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

    Thanks sir.............................

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

    Durga sir Please make a video on Event Handling of yours others faculty have explained these but i didn't get properly bcz i like your way of teaching

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

      do one android program u ll get it

  • @utsavmodh9698
    @utsavmodh9698 8 หลายเดือนก่อน +1

    Perfect explanation🎉

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  8 หลายเดือนก่อน

      Hello Utsav.
      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 with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/kqvaf2

  • @singhshubhamkumar628
    @singhshubhamkumar628 7 หลายเดือนก่อน +1

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

    Sir
    Please add applet and
    Swing and GUI classes
    Please sir.

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

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

  • @rizwanshahid1447
    @rizwanshahid1447 7 ปีที่แล้ว

    Thanks so much, Durga Sir.

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

    Thanks a lot of your every video. Please make a videos on shorting techniques like Bubbleshort, insertion short, quick and mergshorts

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  5 ปีที่แล้ว

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

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

      Its Sort not Short

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

    we can declare static members in normal inner class also in new versions.

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

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

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

    Can you explain the concept of weak reference in static nested classes ???

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  4 ปีที่แล้ว

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

  • @mpanda5644
    @mpanda5644 6 ปีที่แล้ว

    thanks durga sir ..

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 ปีที่แล้ว

      Hello Panda,
      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 with SCJP/OCJP Videos by Durga sir in the following link:
      goo.gl/U1KKyi
      You an see more Java videos following link:
      Java tutorial by durga sir
      goo.gl/XWb4RL
      Java 9 by durga sir
      goo.gl/hXGyBW
      Java 1.8 Version New Features by Durga sir
      goo.gl/iHXXYU
      Adv Java JDBC Tutorial by Durga sir
      goo.gl/8q16Eo
      OCJA 1.8 Java SE 8 Programmer - I (1Z0 - 808 ) By Durga sir
      goo.gl/gC6R7f
      Core Java by NagoorBabu sir
      goo.gl/s6Nvj1
      Advenced Java by Nagoorbabu sir
      goo.gl/ZZonzJ
      CoreJava by Ratan
      goo.gl/3VM19v
      Advanced Java jdbc by Ratan
      goo.gl/Rn2UXr
      Advjava tutorials - JSP by Ratan
      goo.gl/Z6ytxm
      Adv java servlets tutorial by ratan
      goo.gl/zTwi9y
      Servlet and JSP Tutorial by anji reddy
      goo.gl/jZMRUv
      Advanced Java Jdbc by Anjireddy
      goo.gl/16CGzX
      Hibernate byAnjireddy
      goo.gl/qQojvZ
      Struts by Anjireddy
      goo.gl/nE1Eof
      Spring by Mr.AnjiReddy
      goo.gl/NfN14R
      ADV JAVA by Naveen
      goo.gl/bhSsXF
      Spring by Mr.Naveen
      goo.gl/huVwFN
      Hibernate by Mr. Naveen
      goo.gl/TY3Wpd
      Struts by Mr.Naveen
      goo.gl/Vkmiw7

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

    please sir upload video of awt and gui based please sir

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 ปีที่แล้ว

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

  • @Akshay-tj9hm
    @Akshay-tj9hm 7 ปีที่แล้ว

    Durga sir, Why can't we have static method in a non-static inner class ?

  • @ManpreetSingh-ei3gc
    @ManpreetSingh-ei3gc 7 ปีที่แล้ว

    Sir i have a doubt. Instance variable is a part of stack area and object is a part of heap area then how can instance variable part of object?

  • @abhis5575
    @abhis5575 6 ปีที่แล้ว

    Which version sir is explaining

  • @abhishekporwal2996
    @abhishekporwal2996 7 ปีที่แล้ว

    Sir one doubt, if we can access static nested class directly, then what is the need of declaring the class inside another class.

  • @MsSubhrajeet
    @MsSubhrajeet 6 ปีที่แล้ว +4

  • @deenyaduwanshi2688
    @deenyaduwanshi2688 6 ปีที่แล้ว +2

    Can we create object of outer class inside static inner class

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  6 ปีที่แล้ว

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

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

      yes we can
      public class Test2 {
      static void m1() {
      System.out.println("Hello ... i am static method");
      }
      void m2() {
      System.out.println("Hello ... i am instance method");
      }
      static class A {
      static void m1() {
      Test2 t = new Test2();
      Test2.m1();
      t.m2();
      System.out.println("work done by static m1 method of class A");
      }
      void m2() {
      Test2 t = new Test2();
      Test2.m1();
      t.m2();
      System.out.println("work done by m2 method of class A ");
      }
      }
      public static void main(String[] args) {

      A obj = new A();

      A.m1();
      obj.m2();
      }
      }
      output :
      Hello ... i am static method
      Hello ... i am instance method
      work done
      by static m1 method of class A
      Hello ... i am static method
      Hello ... i am instance method
      work done
      by m2 method of class A

  • @inderjeetagarwal202
    @inderjeetagarwal202 7 ปีที่แล้ว

    Sir u r aawesome teacher but you r somewhat slow plz increase your speed.

    • @adityaaggrwal8253
      @adityaaggrwal8253 7 ปีที่แล้ว

      even i think so that's why i watch his videos at 2x speed

  • @mr.q1705
    @mr.q1705 3 ปีที่แล้ว +1

    here is my program
    a.java
    class test
    {
    static class nested
    {
    public static void main(String arg[])
    {
    System.out.println("inner class mm");
    }
    }
    public static void main(String arg[])
    {
    System.out.println("outer class mm");
    }
    }
    mrx@hp-laptop:~$ javac a.java
    mrx@hp-laptop:~$ java test
    outer class mm
    mrx@hp-laptop:~$ java test$nested
    outer class mm
    after executing both inner and outer class i am getting main method of outer class only please reply sir

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

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

    • @sayantanmanna1360
      @sayantanmanna1360 ปีที่แล้ว

      Here, we have to escape the $ by adding a backslash before it. Use `java test\$nested ` and it will work fine.

  • @radiantthebotgameplay8182
    @radiantthebotgameplay8182 6 ปีที่แล้ว

    Hello sir
    as you explain if we want to call static class method outside of outer class than we have create static class object using outer class name,
    but i try that with out using outer class object and program executed successfully \
    i am using java 8 so there is any new feature for this in java 8
    here is my code
    package static_nested_class;
    public class Outer
    {
    static class Inner{
    public void ss()
    {
    System.out.println("inside static class method ");
    }
    }
    }
    package static_nested_class;
    import static_nested_class.Outer.Inner;
    public class Test
    {
    public static void main(String[] args) {
    Inner i= new Inner();
    Inner.ss();
    }
    }
    sir please tell me the reason for that... please sir

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

      without importing Outer.Inner u try.....u get C.E