Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-10 ||static control flow

  Рет қаралды 190,443

Durga Software Solutions

Durga Software Solutions

Күн бұрын

Пікірлер
@hemsagarpatel8992
@hemsagarpatel8992 7 жыл бұрын
i bet no one could challenge this man in teaching java,thanku sir................
@jamescoder3997
@jamescoder3997 3 жыл бұрын
At 32:27 we will not get "illegal forward reference CE". because we are declaring variable first then we are using in static block. but if we will use variable first in static block and then we will declare then only we will get "illegal forward reference CE".
@umeshsonune7018
@umeshsonune7018 7 ай бұрын
Thank you
@deepikaagarwal5580
@deepikaagarwal5580 5 ай бұрын
Exactly otherwise at 39:30 also, we must have to get the ans as illegal forward reference but it didn't cause any compile error there....
@aaravrubral363
@aaravrubral363 3 жыл бұрын
after watching core java lectures of Durga sir I feel java training inadequate without durga sir.
@parthsalat
@parthsalat 2 жыл бұрын
Highly underrated channel 🔥
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Parth. 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
@akshayingale6540
@akshayingale6540 3 жыл бұрын
Sir u r making bright cariars a lots of students like me sir thank you so much sir from bottom of my heart I haven't seen any teacher like u sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 жыл бұрын
Hello Akshay. 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
@sarmasg240
@sarmasg240 4 жыл бұрын
Java means Durga Sir, Durga Sir mean java... outstanding explanation guruji....🙏🙏🙏
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Sarmas. 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
@shrutigoyal600
@shrutigoyal600 6 жыл бұрын
Sir, the magic of your vide0/teaching is so enchanting, that we forget to like/share/comment /subscribe...
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Shruthi. 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
@pradeepkumar-lb1ym
@pradeepkumar-lb1ym 4 жыл бұрын
Excellent class by durga sir on static control flow
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Pradeep. 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
@KD_MEENA
@KD_MEENA 4 ай бұрын
compiler give LEFT&RIGHT Was epic😊😊😊😊
@syedimranrizvi22
@syedimranrizvi22 Ай бұрын
left on right
@mr_possible6197
@mr_possible6197 6 жыл бұрын
I am currently running jdk version 1.8 and I also compiled the above programs which were being exemplified in the time duration 42:04. But I must admit that althought running a higher version than version 1.6, I still got the same output as Durga Sir has got. So I kindly request anyone to clarify the differences that the upper versions of jdk has as compared to version 1.6.
@vinodyarramsetty2190
@vinodyarramsetty2190 4 жыл бұрын
Sir, in this tutorials only you told from 1.7 version onwards JVM starts execution before checking main method only after if main method available it goes for static identification 👍
@leacoder2903
@leacoder2903 8 жыл бұрын
first 15 mins magic......
@ggsood
@ggsood 8 жыл бұрын
thanks sir for your great explanations and concepts
@himanshudagar8394
@himanshudagar8394 5 жыл бұрын
Aree sir maza aa Gaya :)
@SOLELYWEVHY
@SOLELYWEVHY 8 жыл бұрын
Sir when we used to read indirect read method and when we used to direct read method.Because in a single execution of program we get both .for eg time 38:42 how the value static int x =10 in single iteration is a direct read
@ahmidahmid9303
@ahmidahmid9303 5 жыл бұрын
you give me valuable knowledge thank you
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Ahmid. 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
@nuthanprasad8331
@nuthanprasad8331 6 жыл бұрын
Until java 1.6 we can run program without main() method. from 1.7 onwards main() method is mandatory to run a program. So in 1.7 JVM checks for main() method when we run a program. Does it makes any change to order in static control flow?
@राजनगोंगल
@राजनगोंगल Жыл бұрын
👍👍👍👍👍👍
@viplawkumaraniket7526
@viplawkumaraniket7526 4 жыл бұрын
Keep going
@omardjebiri2674
@omardjebiri2674 3 жыл бұрын
thank you sir durga hope you are safe from (covid 19)
@Roaming_India
@Roaming_India 6 жыл бұрын
please let me know the order of study in the playlist in SCJP /OCJP ..because I started with OOPs concept but not able to understand static part
@jvsnyc
@jvsnyc 4 жыл бұрын
kzbin.info/aero/PLd3UqWTnYXOmx_J1774ukG_rvrpyWczm0 or to see newer stuff: kzbin.info/aero/PLd3UqWTnYXOnujVvl3wiZfrFKUEg9jBeA
@bhavikgaur4229
@bhavikgaur4229 8 ай бұрын
All question asked below can be answered if you watch sir’s videos with concentration but my question if jvm is assigning RWIO to variabales like I=0 than how can compiler give exception on that ????
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 8 ай бұрын
Hello Friend. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@Yashkumar-m05
@Yashkumar-m05 3 ай бұрын
👑king
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 3 ай бұрын
Hello Yash. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@niteshtak8484
@niteshtak8484 5 жыл бұрын
lovely concepts.
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Nitesh. 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
@mdafzal4239
@mdafzal4239 Жыл бұрын
(durgaSir==compiler) returns true;❤
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions Жыл бұрын
Hello Afzal. 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
@hamidzia4735
@hamidzia4735 8 жыл бұрын
Hi Sir, Once variable in RIWO state i.e it has initial value as 0. why it's illegal to access ?? JVM hs to print zero as an o/p
@shankars4281
@shankars4281 4 жыл бұрын
Can someone explain how is that, in indirect read, it doesn't gives error but direct read gives compile error? Static variable will be initialized with 0 after 1st step. Then in second step, while executing blocks from top to bottom, why it does matters whether its direct read or indirect read ?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Shankar. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@aniketrana5238
@aniketrana5238 4 жыл бұрын
sir, In inheritance concept you have told if any class is not extending other classes then it is direct child class of object class. if it is true then are all the programmer defined classes which do not extend other classes are child of object? anyone knows the answer? clear this doubt please? thank you,
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Aniket. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@simpletruths99
@simpletruths99 4 жыл бұрын
Yes. All the programmer defined classes which are not extending other classes are child of object
@aniketrana5238
@aniketrana5238 4 жыл бұрын
@@simpletruths99 Thank you for telling the answer sasi. Though I already got my answer from anywhere else, but I really appreciate your effort for devouting your precious time to answer me. Aniket,
@ashishshah3899
@ashishshah3899 6 жыл бұрын
After step 13 at 14.00 why public static void m1() method never executed independently after main method() ?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Asshih. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@abhay1893
@abhay1893 6 жыл бұрын
When variable is in RIWO state then why JVM makes difference as "Direct" and "Indirect" Read. Why JVM not print as Zero value for direct read. what is the reason behind this?
@Ey18
@Ey18 2 жыл бұрын
sir one small doubt atlast eg the output should be 10, followed by RE..because that value 10 is assigned in x so x value is 10 and followed by RE..how 0 is coming sir??? if it is assigned the x value should be 10 sir..
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 2 жыл бұрын
Hello Karthik. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@anuragbisen1146
@anuragbisen1146 5 жыл бұрын
Sir,Your teaching style is great...!Where I can find Advance java videos taught by you.?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Anurag. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. For Adv. Java videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@Mona001-01g
@Mona001-01g 2 жыл бұрын
I want only Durga sir to teach though. Nobody can match his enthusiasm and charisma!
@rashitiwari3154
@rashitiwari3154 4 жыл бұрын
Hi, In first example when I'm executing this program, I'm not getting 0 as first output. Can anyone tell me why? Is it due to change in version?
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Rishi. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@rahulchowdhury4227
@rahulchowdhury4227 4 жыл бұрын
supports until v1.7. And v1.7 onwards main method must be there
@simpletruths99
@simpletruths99 4 жыл бұрын
Yes. If you want more clarity please check 14th video
@saik1428
@saik1428 6 жыл бұрын
Sir,in 30-35 minutes you said that it will give a compilation error.But it is executing and not giving any error sir
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 6 жыл бұрын
Hello Sai Nath. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
@kiit-csc-csc-gc4ir
@kiit-csc-csc-gc4ir 6 жыл бұрын
You are right. place that static int i=10 after static block and you will get an error. He made mistake while explaining. As static int i=10 is in r&w state no error will come.
@ankitsethia9328
@ankitsethia9328 6 жыл бұрын
class Program { //static int i=10; static { m1(); System.out.println(i); } static int i=10; public static void m1() { System.out.println(i); } public static void main (String[] args) throws java.lang.Exception { } }
@johnwickgaming6938
@johnwickgaming6938 5 жыл бұрын
No sir teaching correct u just made a mistake while listening If u just declare static int i; Then if u can read this directly u get compile time error U just call one method then u read i U get zero as the output Because JVM intialize zero at the time of identification
@ckbapps2009
@ckbapps2009 8 жыл бұрын
Is your playlist videos is in wrong arranged, I mean, sir teaching static block right away but the original definition of static block is in Part11..?
@leacoder2903
@leacoder2903 8 жыл бұрын
#ThatsRight YOU are right 10 is 11 and 11 is 10
@chochitv5135
@chochitv5135 4 жыл бұрын
Sirr... If m1( ) is 8th step how does it mean sopln( j ) becomes 9th step😢
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 4 жыл бұрын
Hello Chochi. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@simpletruths99
@simpletruths99 4 жыл бұрын
Yes. It will be navigated to that method m1. The method m1 implementation is sopln(j);
@SuperAmitks
@SuperAmitks 6 жыл бұрын
Sir which thread executes static block ??
@4thdimensional914
@4thdimensional914 6 жыл бұрын
main thread.
@MANUCRIXZ
@MANUCRIXZ Жыл бұрын
day59 completed🙂
@AliAkbar-vo3te
@AliAkbar-vo3te 7 жыл бұрын
Sir, What do you mean by( keep subduing)?
@no_name3043
@no_name3043 7 жыл бұрын
"keep subheading"
@jonassx100
@jonassx100 6 жыл бұрын
keeps a budding
@aadishjain8827
@aadishjain8827 Жыл бұрын
keep supporting
@chanderkantsharma9913
@chanderkantsharma9913 7 ай бұрын
keep sub heading.
@True_living_2112
@True_living_2112 5 жыл бұрын
One of the 3 examples in the last. I am getting a compile-time error in the 2nd example. It is not working in any of the version
@DurgaSoftwareSolutions
@DurgaSoftwareSolutions 5 жыл бұрын
Hello Vikash. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
@PaddlingDuckInc
@PaddlingDuckInc 7 жыл бұрын
In your second example , you will get a compile time error saying "Cannot reference a field before it is defined"
@abhibhandarkar189
@abhibhandarkar189 8 жыл бұрын
In the first program, when j was in RIWO state, we got value of j as 0. Why are we not getting "illegal forward reference" error?
@chochitv5135
@chochitv5135 4 жыл бұрын
Dislike chesevallaki chudakundane video ni dislike chese phobia emanna undi undachemo
Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-11 ||static block
1:11:00
Java Tutorials || Java OOPS  || Java Inheritance || by Durga Sir
1:16:42
Durga Software Solutions
Рет қаралды 106 М.
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Learn Java Object-Oriented Programming (with actual code)
29:44
ForrestKnight
Рет қаралды 48 М.
Corejava - Basics - Static blocks in java
43:18
Durga Software Solutions
Рет қаралды 93 М.
Core Java With OCJP/SCJP: OOPs(Object Oriented Programming) Part-9||type casting
41:29
Java Tutorials || Java OOPS  || 3 Mantras of Object Type Casting || by durga sir
24:27
Difference between Interface and Absract Class
16:57
DURGA EDUCATION
Рет қаралды 972 М.
#37 Static Variable in Java
7:06
Telusko
Рет қаралды 183 М.
Core Java with OCJP/SCJP: Multi Threading Part-10 || Inter Thread Communication Part-1
1:18:26
Java Tutorials || Java OOPS  || Java Encapsulation || by Durga Sir
54:07
Durga Software Solutions
Рет қаралды 57 М.
Java Tutorials || Java OOPS  || Java Object Type Casting || by Durga Sir
1:01:18
Durga Software Solutions
Рет қаралды 25 М.
Java Tutorial for Beginners - Made Easy - Step by Step
1:27:25
Patrick WashingtonDC
Рет қаралды 6 МЛН