Nowerdays teaching has become a very big business but a very few like Durga Sir can be said to be following a noble profession and yes many will say he earns a lot from these videos and he has cut many videos but just think has anyone else provided you this much for free? And if he had to earn he could have earned a lot more by providing only one or two topics as demo here and providing rest in Udemy or live class here he might be getting may be lacks but just imagine if he charged 7k for core java from each student lile in Bangalore he could have earned a lot more than what he earns from TH-cam.
Hello Anand. 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
Hello Durga Sir, I am a Java professional, still, when I feel get stuck anywhere when I feel I need to understand that thing as much as deep Durga sir is taking class, I am always following your tutorial. I am so much learning from Durga sir and sometimes I feel like I am EKLVYA OF Durga sir which only need seen face to face but always GURU will be there to help there STUDENT On Virtually (TH-cam). Great Work by Durga sir and His team. Proudly say you will make a change in the STUDY OF INDIAN STUDENT AND TEACHER LIFE. HATS OF YOU SIR AND YOUR TEAM for all.😇
Hello Ashish. 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
Hello Sashko. 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
Hello Parveen. 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
Hello Jayant. 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
Note: Before Java 16, you couldn’t have static methods in non-static inner classes. From Java 16 onwards, static methods are allowed in inner classes, provided they don’t interact with instance variables of the outer class.
JAVA made easy :)....Watched most of your videos Sir.... I follow your videos so much...that the names- Durga, Shiva, Ravi, Pawan...I hear them in my dreams:)))
Hello Sanjay. 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
Hello Durga Sir, Im watching your videos from Allahabad, Uttar Pradesh and you're famous here. Thank you for your direction and training that we're so so learned in Java.
Durga sir thank.u... actually i cannot thank u enough, u r the only one who makes complicated topics as cake walk for students to understand... the way u teach is jus amazing... u leave no stone unturned to make a student. Thank u for ur effort and ur free videos... i think nobody is there who share such complicated and important topics for free on internet...
Hello Reshi Hashim. 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
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
Hello Anshika. 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
Seriously the way of teaching and explanation are too good. My most of the concept has been cleared thank you so much. Could you please share the link of SCANNER topic video ?
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
We can not declare static methods inside inner class because it is instance of outer class and until outer class object creation we can't create inner object right but static declaration inside inner class doesn't talk about object creation then why we can't declare static inside inner
Sir, u told that Inner class and outer class share HAS-A relationship. But according to HAS-A relationship, if container class' object is created then inside the Container object the content object will also be created. But in case of inner classes it is not mandatory that inner class object is created by creating outer class(static inner class) only. Inner class can have separate independent existence and after destroying outer class object the inner class object will not be destroyed(static inner class). So my question is not all types of inner and outer classes share HAS-A relationship.
HAS- A relation is AGGREGATION where inside object is not dependent to parent object existence i.e. class Bank has an class Employee, if Bank is destructed then employee still exist and you are taliking about COMPOSITION where parent -child are strongly dependent to each other
Someone made a good point but still kind of missed the heart of your confusion. Still watching the video, but most people are going to use the terms "static NESTED class" and "member INNER class" only, especially in modern times. That is, we don't speak of "static INNER class" but use the adjective NESTED if the relationship is static. So INNER class unless we say LOCAL or ANONYMOUS generally means instance member.
While listening for the first time , his class was like boring, why he is repeatedly asking and telling the things like that. But after listening the statement explanation with his examples and information we will get y dhurga is java and java is dhurga
Hello Sruthi. 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
Hello Sopan Borale. 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
Hello Harsha. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. For Core Java all videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
sir, we can access inner class members from static method of outer class by creating instance of outer class firstly, then we create instance of inner class by this way (OuterClass.InnerClass i = o.new Inner();).... now here my ques is that why can't we created object after creating object of outer class by this way in static method of outer class - InnerClass i = new InnerClass();....?????
inner classes are an implementation of composition? In both the concept, there is no chance of existing other objects if the parent object doesn't exist. So are these concept same if yes then we can achieve the same using override concept as well, can you please explain more ?
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 with SCJP/OCJP Videos by Durga sir in the following link: goo.gl/kqvaf2
Hello Ajay. 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
I can't think of a better lecturer to simplify concepts like this. Sir can you have multiple inner classes in a class or multiple inner interfaces in an interface? Also can you have both inner classes and interfaces in a class?
When i use jdk8u231 for the below code, am not getting error/exception for java Outer$Inner., Please explain. class Outer { public Outer(){ System.out.println("Outer"); } class Inner{ public Inner(){ System.out.println("Inner class"); } } public static void main(String[] args) { System.out.println("Outer class main method"); } } Output java Outer -> Outer class main method java Outer$Inner -> Outer class main method
Great Teacher but If you cant repeat one line atleast 7-10 times consecutively that would be great.This video can easily be just 1 hour long. Rest great analogies good teaching.
This is the class of at least 1000 members, and all are mostly college passout. So to make them understand and make them memorise most of the concepts, he does that. I hope you understand. That is the way of teaching to make the newer people understand in a better way. And he is doing his job in a better way and another reason is students are making notes
sir but when one object contains other object ,and the contained object doesnt exist with other object is called composition na,where child class doent exist if there is no parent class.but u ar esaying it as inner class.
As static related declarations are not allowed in Inner class then why it is giving error as NoSuchMethodError:main when we run Inner class without declaring p s v main(String[] args) in it?
Hello Sumit. 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
Hello sir, if we are calling Inner class method ----> Outer.Inner i = new Outer().new Inner().m1(); then inside Inner class method return type will be change or not sir . but you didn't change and have not explained about this thing.
Hello Raj. 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
public class A { class B { public void show() { System.out.println("Hi"); } } } class Test { public static void main(String[] args) { A a = new A(); A.B ab = a.new B(); ab.show(); } so outer.inner i = o.new inner() is on me A.B ab = a.newB(); When you want to create an object from an inner class you first need a reference from object from outer class!! Because Class A contains B so you can't(in my case) call the method straight from class A, cause my method it's in class B so i first need to make a object from Class A then make an object from class B and this is the line where i making this a.new B(); here i created the inner object. with the reference ab and i'm calling show after that. I hope you get it, bro.
Hello Ahish. 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
That is not correct. You can't have a static declaration in an inner class. You'll end up with a compiler error : "Inner class cannot have static declaration"
Hello Sir, I was trying the inner class example by defining main method inside the inner class, however I did not get any compile time error and I was also able to execute the main method from the inner class itself. I am running this code using java 1.8, so has the way of compiling inner classes in java 8 changed? Thanks in advance.
public class InnerClass { public static void main(String [] args) { while(true) { System.out.println("With out Existing outer class objects There is No chance of existing Inner Class Object"); } } }
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
If you prefer everything English above your own culture, then you are mentally enslaved. Nobody but yourself can free you from this form of slavery as the chains are on your mind and not you hands and feet.
Why are you seeing videos if English is not good, A person who is giving his valuable knowledge free of cost but you type of people can not understand, Angrej sale, even you are ant in front of his knowledge..
Nowerdays teaching has become a very big business but a very few like Durga Sir can be said to be following a noble profession and yes many will say he earns a lot from these videos and he has cut many videos but just think has anyone else provided you this much for free? And if he had to earn he could have earned a lot more by providing only one or two topics as demo here and providing rest in Udemy or live class here he might be getting may be lacks but just imagine if he charged 7k for core java from each student lile in Bangalore he could have earned a lot more than what he earns from TH-cam.
Hello sir!
Your repetitive teaching style is very effective according to me. One can never ever forget your teachings. Thanks and God bless!
Hello Anand.
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
durga sir is the king king in java
Yar ya bnda phenomenal bnda Hy thanks from Pakistan ❤❤❤❤
Hello Durga Sir,
I am a Java professional,
still, when I feel get stuck anywhere when I feel I need to understand that thing as much as deep Durga sir is taking class, I am always following your tutorial.
I am so much learning from Durga sir and sometimes I feel like I am EKLVYA OF Durga sir which only need seen face to face but always GURU will be there to help there STUDENT On Virtually (TH-cam). Great Work by Durga sir and His team.
Proudly say you will make a change in the STUDY OF INDIAN STUDENT AND TEACHER LIFE.
HATS OF YOU SIR AND YOUR TEAM for all.😇
Hello Ashish.
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
ashish bro can you please let me know what should i do after completion of this durga sir's complete core java course,what should i do next ??
Durga sir...... Ur teaching is very nice and very helpful to me!!!! Thanku so much sir......
you are a grate teacher Mr. Durga , you make me love java language and understand the concepts of java very well .. thanks ..tanks
he is a teacher, not a cheese cube you can grate. :-)
You are the best teacher i have ever seen in my life.
Hello Sashko.
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
Every time I change my job I refer your tutorials for preparation....nice tutorials...thanks🙂
Hello Parveen.
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
Thank you Sir, again came here after 3 years - just to clarify on this topic, thanks again!
Hello Jayant.
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
His tutorial is better than any OCJP text book that I have ever read
Hi Kabir. Thank you very much for your feedback
Even this playlist, supplemented with the appropriate and necessary updates.
Note:
Before Java 16, you couldn’t have static methods in non-static inner classes.
From Java 16 onwards, static methods are allowed in inner classes, provided they don’t interact with instance variables of the outer class.
Watched again and completed watching on 28-08-2024 at 11.40 PM :)
JAVA made easy :)....Watched most of your videos Sir....
I follow your videos so much...that the names- Durga, Shiva, Ravi, Pawan...I hear them in my dreams:)))
Hello Sanjay.
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
Hello Durga Sir, Im watching your videos from Allahabad, Uttar Pradesh and you're famous here. Thank you for your direction and training that we're so so learned in Java.
Durga sir thank.u... actually i cannot thank u enough, u r the only one who makes complicated topics as cake walk for students to understand...
the way u teach is jus amazing... u leave no stone unturned to make a student. Thank u for ur effort and ur free videos... i think nobody is there who share such complicated and important topics for free on internet...
Hello Reshi Hashim.
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
for sure ❤️
durga sir your way of teaching is really great. I like to learn from you.
Thank you sir.
thank you lavish
Thanks sir , for making wonderful videos on java.
Hi Amritesh. Thank you very much for your feedback
Amazing Sir... you are best. This video on inner class concept has cleared my fundamental.
Hi Mohit. Thank you very much for your feedback
Superb sir deep learning
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
Durga Sir. Thank you so much. Bigger words are so small for your help.
Thanks u Durga sir ...for making java easy to learn
Hello Anshika.
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
lots of respect to durga 🎉
very helpful concepts by Durga Sir.......Really Thank you Sir...
Tq.. Pratik
sir when should we use inner class and when should we use Composition(Has-a relationship)
Thank you Durga Sir :)
tsank you serrr
Yes i agree with my Indian bruda
100th video completed❤🎉
Java means Durgasoft and Durgasoft means Java..
Sir,Excellent
Seriously the way of teaching and explanation are too good. My most of the concept has been cleared thank you so much.
Could you please share the link of SCANNER topic video ?
Hi Vikas. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
Nice tutorial. Thank you Durga!!
After watching this video, I am feeling that I will definitely get job. Thank you for video.😊😊
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
👏👌
Durga Sir, God Must consult you 🐅👏
Completed watching on 28-05-2024 at 3.50 PM
You are awesome Sir..
God Bless yoy Sir jii❤
Please update videos as per java 1.7 or 1.8 because there are few changes in the concepts which you are teaching in this video.
you are awesom sir ...
We can not declare static methods inside inner class because it is instance of outer class and until outer class object creation we can't create inner object right but static declaration inside inner class doesn't talk about object creation then why we can't declare static inside inner
Sir, u told that Inner class and outer class share HAS-A relationship. But according to HAS-A relationship, if container class' object is created then inside the Container object the content object will also be created. But in case of inner classes it is not mandatory that inner class object is created by creating outer class(static inner class) only. Inner class can have separate independent existence and after destroying outer class object the inner class object will not be destroyed(static inner class).
So my question is not all types of inner and outer classes share HAS-A relationship.
HAS- A relation is AGGREGATION where inside object is not dependent to parent object existence i.e. class Bank has an class Employee, if Bank is destructed then employee still exist and you are taliking about COMPOSITION where parent -child are strongly dependent to each other
Someone made a good point but still kind of missed the heart of your confusion. Still watching the video, but most people are going to use the terms "static NESTED class" and "member INNER class" only, especially in modern times. That is, we don't speak of "static INNER class" but use the adjective NESTED if the relationship is static. So INNER class unless we say LOCAL or ANONYMOUS generally means instance member.
innnner classes
While listening for the first time , his class was like boring, why he is repeatedly asking and telling the things like that. But after listening the statement explanation with his examples and information we will get y dhurga is java and java is dhurga
Hello Sruthi.
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
thank you sir.... really i felt very happy with this tutorials
thank you sir for making our life easy , for mine your like god
Hello Sopan Borale.
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
Awesome class sir,I want your core Java full classes sir pls send the link sir
Hello Harsha.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
For Core Java all videos,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
sir, we can access inner class members from static method of outer class by creating instance of outer class firstly, then we create instance of inner class by this way (OuterClass.InnerClass i = o.new Inner();).... now here my ques is that why can't we created object after creating object of outer class by this way in static method of outer class - InnerClass i = new InnerClass();....?????
instead of (OuterClass.InnerClass i = o.new Inner();).
Thanks Sir...
inner classes are an implementation of composition? In both the concept, there is no chance of existing other objects if the parent object doesn't exist. So are these concept same if yes then we can achieve the same using override concept as well, can you please explain more ?
Hello Ritika.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Any one can clarify a doubt this much depth of learning java is requried for Advanced automation people
thumbs up for durga. 5*/5*
Sir basic java programs upload chai sir please...
We have a campus placements
In December please upload sir..
Hello Raghunath.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Lots of respect for durga sir🙏🙏
Is durga sir teaches advance java ,hibernate , spring and spring boot in his paid courses??
Hello Friend.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
very clear
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 with SCJP/OCJP Videos by Durga sir in the following link:
goo.gl/kqvaf2
king of java
Hello Ajay.
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
I can't think of a better lecturer to simplify concepts like this. Sir can you have multiple inner classes in a class or multiple inner interfaces in an interface? Also can you have both inner classes and interfaces in a class?
Hello Kanu.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thanks Sir
When i use jdk8u231 for the below code, am not getting error/exception for java Outer$Inner., Please explain.
class Outer {
public Outer(){
System.out.println("Outer");
}
class Inner{
public Inner(){
System.out.println("Inner class");
}
}
public static void main(String[] args) {
System.out.println("Outer class main method");
}
}
Output
java Outer -> Outer class main method
java Outer$Inner -> Outer class main method
Great Teacher but If you cant repeat one line atleast 7-10 times consecutively that would be great.This video can easily be just 1 hour long. Rest great analogies good teaching.
This is the class of at least 1000 members, and all are mostly college passout. So to make them understand and make them memorise most of the concepts, he does that. I hope you understand. That is the way of teaching to make the newer people understand in a better way. And he is doing his job in a better way and another reason is students are making notes
Fir kahoge ki likhataa nhi hai :D
sir but when one object contains other object ,and the contained object doesnt exist with other object is called composition na,where child class doent exist if there is no parent class.but u ar esaying it as inner class.
Hello Anudeep.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Thank you sir.
Durga sir please teach Scala
Hello Friend.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
thank you sir
As static related declarations are not allowed in Inner class then why it is giving error as NoSuchMethodError:main when we run Inner class without declaring p s v main(String[] args) in it?
Hello Ashish.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Now without engine cars are available sir.. electric vehicles.
It does have engine lectric engines
java legend
Hello Sumit.
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
Is any course available for kotlin like this by durga sir?
Hello Friend.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Hello sir,
if we are calling Inner class method ----> Outer.Inner i = new Outer().new Inner().m1();
then inside Inner class method return type will be change or not sir .
but you didn't change and have not explained about this thing.
Hello Pratap.
Plz contact our Offline team durgasoftoffline@gmail.com or call us on this number +91 - 8852885296/97/63/64
Java means durga sir only..
Hello Raj.
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
sir can normal / regular inner class can also be called as non static inner class ?? plzzzz answer.
Thanks A Lot Sirji @durgasir
please create some videos on functional programming in java 8
Hi, Manjinder ...ya we will do it in coming days. plz do follow us on TH-cam
Sir, Please post some videos on Lambda expressions(java 8)
Eagerly waiting for your videos!
Thanks in advance.
outer.inner i=o.new inner();
sir explain the above statement.
Why do we use outer class reference variable to create inner class object..
public class A
{
class B
{
public void show()
{
System.out.println("Hi");
}
}
}
class Test {
public static void main(String[] args)
{
A a = new A();
A.B ab = a.new B();
ab.show();
}
so outer.inner i = o.new inner() is on me A.B ab = a.newB();
When you want to create an object from an inner class you first need a reference from object from outer class!! Because Class A contains B so you can't(in my case) call the method straight from class A, cause my method it's in class B so i first need to make a object from Class A then make an object from class B and this is the line where i making this a.new B(); here i created the inner object. with the reference ab and i'm calling show after that. I hope you get it, bro.
god of java.........
Hello Ahish.
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
Sir please reply my question ⁉️-->> why the name of file and class name should be same , what is the reason make a video else reply please 🙏
Hello Lakshman.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Innerclasses can have static final constants.
That is not correct. You can't have a static declaration in an inner class. You'll end up with a compiler error : "Inner class cannot have static declaration"
Marimuthu is right
sir can we access private method inside a normal method?
Hello Sopan Borale.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Yes u can
Thank u sir,
there is no compile time error to me sir for static methods in
inner class
Hello Prakash.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
new version........
pls provide short video ....pls
Hello Sir, I was trying the inner class example by defining main method inside the inner class, however I did not get any compile time error and I was also able to execute the main method from the inner class itself. I am running this code using java 1.8, so has the way of compiling inner classes in java 8 changed? Thanks in advance.
Hello Ratnadeep.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
yes bro also I did not get any compile time error
You will get error only if you don't declare main method in inner class .
You have included main method so no error
In older version it used to be so but after 16 we can have static methods inside inner class
BIG THANK YOU......Sir .@#@#@#@#@#@#@#@#@#@#@
public class InnerClass
{
public static void main(String [] args)
{
while(true)
{
System.out.println("With out Existing outer class objects There is No chance of existing Inner Class Object");
}
}
}
keeps a budding or keeps a wording? ...O.o
Keep subheading....
🙏🙏👏👏👍👍🙏🙏👏👏👍👍🙏🙏👏👏👍👍
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
Too much advertisement !
R.I.P English
Why the hell on earth u observe his English? Just concentrate on his knowledge and the way he explains it to make us understand. Sick people
.this video is to learn Java Not English.
If you prefer everything English above your own culture, then you are mentally enslaved. Nobody but yourself can free you from this form of slavery as the chains are on your mind and not you hands and feet.
Why are you seeing videos if English is not good, A person who is giving his valuable knowledge free of cost but you type of people can not understand, Angrej sale, even you are ant in front of his knowledge..
what a moron lol
Thank You Sir.