Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-16 || overloaded constructor

  Рет қаралды 165,168

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер: 89
@kousalyamariappan2492
@kousalyamariappan2492 5 жыл бұрын
Durga sir has given left, right and center to Java 😀
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Kousalya. 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 python videos by Durga sir in the following link goo.gl/EapLMr
@Lakshmankablog
@Lakshmankablog Жыл бұрын
Really.
@mohanrammanikandan7939
@mohanrammanikandan7939 4 жыл бұрын
Thank you, sir. The last 12 minutes has covered the entire concept with interview questions. :)
@amitahlawat7008
@amitahlawat7008 4 жыл бұрын
Top quality teaching by a top quality teacher
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Amit. 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
@nareshmurty5511
@nareshmurty5511 Жыл бұрын
Best of the Best explanation.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Naresh. 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
@ravishankarbaranwal6917
@ravishankarbaranwal6917 6 жыл бұрын
Specially thanks Sir for this session because in it at the end you revised all the topics...
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Ravishankar. 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
@mtfmayurtechandfacts3414
@mtfmayurtechandfacts3414 2 жыл бұрын
If u were not there wid us....no one will teach in a such way to us. Tq for being.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
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
@SaurabhYadav-hh9ex
@SaurabhYadav-hh9ex 9 ай бұрын
Thank you Sir..... Thank you so much again🥰🥰🥰🥰🥰
@arjunkataksh
@arjunkataksh 7 жыл бұрын
31:12 Compiler will give left and right :D
@priyachoudhary3271
@priyachoudhary3271 3 жыл бұрын
Clear clarity sir😊
@MANUCRIXZ
@MANUCRIXZ Жыл бұрын
wonderful explanation sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
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
@kislayapant6119
@kislayapant6119 2 жыл бұрын
Awesome teacher. many more teachers like you are required all over world sir :)
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
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
@kislayapant6119
@kislayapant6119 2 жыл бұрын
@@DurgaSoftwareSolutions thanks sir
@ranveervaghela7030
@ranveervaghela7030 Жыл бұрын
Amazing as always :)
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Ranveer. 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
@hiteshkumar2076
@hiteshkumar2076 6 жыл бұрын
Best java tutorial
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Hitesh Kumar. 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
@omardjebiri2674
@omardjebiri2674 3 жыл бұрын
Thank you sir Durga
@santoshkodamble2266
@santoshkodamble2266 4 жыл бұрын
data struture and algorithm also teach
@abdulrahmans6879
@abdulrahmans6879 Жыл бұрын
Thank you so much sir....!
@tajdarkhanafridi2222
@tajdarkhanafridi2222 8 жыл бұрын
Very nice explanation ....
@prasadmahakal2361
@prasadmahakal2361 2 жыл бұрын
Thank uhh Sirji
@ArchanaSingh-xl7gk
@ArchanaSingh-xl7gk 4 жыл бұрын
Sir u r great 🥺
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Archana. 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
@sumitbadugu417
@sumitbadugu417 4 ай бұрын
Please make video on DSA
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 ай бұрын
Hello Sumit. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@pratiktekade9126
@pratiktekade9126 2 жыл бұрын
Thank you sir
@salmankhan-br4ng
@salmankhan-br4ng 6 жыл бұрын
In 13:44 video..if you can pause..you can check once this.name and this.age both are in single mehod. My dout is it possible to applicable two this() keywords in single method????
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Salman Khan. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@wamiqueiqbal246
@wamiqueiqbal246 5 жыл бұрын
Salman there is diffirence between this() and this.
@reeteshtripathi
@reeteshtripathi 2 жыл бұрын
Sir All These Language Fundamentals are still same?, because I am learning now and these videos are uploaded 6 year ago...
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Tripathi. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@tattitatooo655
@tattitatooo655 2 жыл бұрын
Bro indeed true his lectures are something
@tattitatooo655
@tattitatooo655 2 жыл бұрын
Are you a java developer
@bharathkoneru4008
@bharathkoneru4008 5 жыл бұрын
On making a recursive constructor call, Recursive Constructor Invocation error is thrown at run-time by JVM but not at compile-time. Only warnings are shown in the class file. It is throwing the error only when tried to call the constructor by creating object. Any changes happened in java 1.8?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Bharath. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@ashishroutray9486
@ashishroutray9486 3 жыл бұрын
Sir in static overflow concept you told that identification of static memeber and execution of static memeber and then execution of main method but in construction recursion without creat an object who it's show error the main method is static and it should execute and give output "hello" Sir can you explain how this constructor recursive invocation error come without creating a constructor.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Ashish. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@thesaggy21
@thesaggy21 22 күн бұрын
main method is static so even if we creating object it will show error during recursive method call as the only thread here is main and if there is a "possibility" of Recursive Constructor Invocation then only it will give error,, we know all the variable in interface is static by default so there is no instance variable available inside the interface hence it cannot contain constructor
@shalinimarimuthu937
@shalinimarimuthu937 6 жыл бұрын
Hi Sir, You have told inheritance and overriding concept not applicable for constructor, but for case 2(45:30 ) example sir using inheritance.A bit confusing sir.can give explanation?
@soloforever6635
@soloforever6635 6 жыл бұрын
He is referring the constructors can't be called by using the inheritance concept, but you can call the methods right so, you cannot use the parent constructors in child but you can use the methods. just have look again 16:18 again it may clear your doubt
@ayushtiwari4068
@ayushtiwari4068 5 жыл бұрын
what is the use of constructor in abstract classes
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Ayush Tiwari. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@vkj5742
@vkj5742 4 жыл бұрын
Ayush Tiwari ,Abstract class contains constructors to perform initialization to the instance variables which are inherited by the child class from that abstract class.
@shankars4281
@shankars4281 4 жыл бұрын
A class may extend abstract class and then it will inherit all the properties of abstract class. If we don't initialize value for these fields or properties, child class don't get values. so, we can have constructor for abstract class, even though we can't create object of it.
@jvsnyc
@jvsnyc 4 жыл бұрын
@@shankars4281 Even more than what you guys said. It would be possible for the abstract parent class to have some private instance variables that must be initialized, but since they are private there is no other way to initialize them than only calling the super( ) constructor with necessary parameters.
@yashbhave1072
@yashbhave1072 5 жыл бұрын
Hello Sir,as you said earlier that inheritance concept not applicable in constructor but here in 41th mini u used inheritance,this is creating confusion sir can you plz solve this?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Yash Bhave. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@rgsivacts
@rgsivacts 5 жыл бұрын
It is not inheritance, but calling super class constructor! Inheritance means by default parent class methods are available to child class. But this concept is not applicable for constructor. Hope this helps!
@balla4004
@balla4004 4 жыл бұрын
@@rgsivacts Thanku
@petchiyogeshwar4405
@petchiyogeshwar4405 7 жыл бұрын
Parent class constructor must be executed twice. First in the instance Control Flow due to the creation of child object and next in the call to the parent class constructor in child class constructor using super().
@balla4004
@balla4004 4 жыл бұрын
@Sandeep Rawat Thanku
@chetanputtappanavar3425
@chetanputtappanavar3425 7 жыл бұрын
Sir, in first example, in test(double d) constructor you dirctly used println statement instead of super(); or this ();
@LalitKumar-ls4tu
@LalitKumar-ls4tu 7 жыл бұрын
Internally compiler automatically write the code in 1st line. super()
@ayushtiwari4068
@ayushtiwari4068 5 жыл бұрын
if super(); is used in parent constructor then which constructor will be called? if parent constructor is called then why it is not giving recursive constructor error or stackoverflow RuntimeException
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Ayush. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@bharathkoneru4008
@bharathkoneru4008 5 жыл бұрын
For every class in java, Object class is the parent class of all classes. Object class constructor is invoked. And remember recursive constructor call/invocation happens only with use of this() i.e., only within the current class.
@LalitKumar-ls4tu
@LalitKumar-ls4tu 7 жыл бұрын
class test { test() { System.out.println("this is test"); } } class over extends test { over(int i) { System.out.println("this is default"); } public static void main(String args[]) { over obj1 = new over(10); } } output: this is test this is default how is this possible if you are telling inheritance is not applicable for constructor. i am confused
@sateeshbabu5792
@sateeshbabu5792 7 жыл бұрын
i tried same inheritance is possible , but according to sir explanation inheritance is not possible. any inputs on this, please class test { test() { System.out.println("test constuctor"); } } class c extends test { c(int i) { System.out.println("child constuctor"); } } class inf1 { public static void main(String[] args) { c c1=new c(10); } } Ans : test constuctor child constuctor
@LalitKumar-ls4tu
@LalitKumar-ls4tu 7 жыл бұрын
ya that why i am confused i also tried before h it is possible bt according to sir it is not
@anand_kanekal
@anand_kanekal 7 жыл бұрын
over(int i) { super(); System.out.println("this is default"); } Conclusion: It is because the compiler is placing super() keyword when the constructor is called, which is thus responsible for calling parent class constructor. I hope this helps!
@deadfish404
@deadfish404 7 жыл бұрын
This concept is not inheritance.. you should watch "Instance Control Flow" to understand this. Whenever you create a child object, parent class instance blocks and parent class constructor are Executed first. Then the child class instance blocks and child class invoked Constructor is executed. In your program the same happened. you created the object of child class . so the parent constructor executed first then the child constructor(invoked) got executed.
@LalitKumar-ls4tu
@LalitKumar-ls4tu 7 жыл бұрын
ya i also think it's happened but i want confirmation thx
@rojasidda2006
@rojasidda2006 7 жыл бұрын
sir , why recursive constructor invocation is a compile time error.
@sateeshbabu5792
@sateeshbabu5792 7 жыл бұрын
Nice sir thanks u
@sravanb8654
@sravanb8654 8 жыл бұрын
sir why this() should be in first line is there any reason???thankss
@ramachandranraman3551
@ramachandranraman3551 7 жыл бұрын
thankyou so much sir
@pavankumar1539
@pavankumar1539 7 жыл бұрын
Sir without creating object could we call constructor
@balla4004
@balla4004 4 жыл бұрын
@Sandeep Rawat thanku
@sudipupadhyay6935
@sudipupadhyay6935 7 жыл бұрын
sir can we use super(10.5) in case of int arg in second line or not?
@abhishekyadav8974
@abhishekyadav8974 6 жыл бұрын
sudip upadhyay no we can't
@ritiksrivastava9069
@ritiksrivastava9069 3 жыл бұрын
my compiler is treating constructor as method why?? anyone please
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Ritik. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@somnathchakraborty6245
@somnathchakraborty6245 6 ай бұрын
29-05-2024
Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-17 || singleton class
35:18
Constructors in java | default constructor | Constructor Overloading
2:27:05
Durga Software Solutions
Рет қаралды 218 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-14 || constructors
1:04:57
Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-5 ||overriding
1:22:38
Durga Software Solutions
Рет қаралды 314 М.
Difference between Interface and Absract Class
16:57
DURGA EDUCATION
Рет қаралды 972 М.
Object Oriented Programming (OOPs) Concepts In Java || by Durga sir
10:33:31
Durga Software Solutions
Рет қаралды 1,5 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН