You are the same guy who said bullshit in the last live video? grow up and mind your language when you talk to your seniors like naveen and elders. this will help you when you work in a company.
@@ankitmahajan8295 That's why I realised and said sry bro and even u don't know my scenario as I lost my super chat twice and after that I've done another super chat and sir didn't even picked that one so in that mood I've done like that I hope you understand my mistake
Hi Naveen.. Variable "out" here is declared as public static final PrintStream out = null ; 1. Generally when we use final keyword, variables becomes constant (i.e, We cannot change it), but here we are updating variable using setOut0 native method.. Please clarify on this query.. 2. Why should we use native method,rather than that we can develop a java method and use it right? Please confirm us if it was used for the purpose of reusability.. TIA.. Thanks for all your efforts from the QA community.. It's nonpareil 😊👍🏻 May the force be with you 👍🏻
Hi, 1. We are not updating the final out variable, it's just getting initialized from the native method call by jvm. 2. They could have written the java code for that, but in java there are few concepts which are taken from C in the form of native support.
Hi, Naveen thanks for excellent teaching through your videos. I wish to request if you can make videos on Java documentation that would be helpful. For any automation engineer or software developer documentation plays a very important role. Please help us educate on it. Thanks
Hi Naveen, Thanks for the good explanation. I need small clarification here. While executing the c program which compiler has been used? As I know c files will be executed in gcc compiler. That means inside jvm is there any gcc compiler available? Can you clarify on this. Just for curiosity am asking.
Using JNI a java program has the capability to call the native C code. Java native interface (JNI) is a framework provided by java that enables java programs to call native code and vice-versa.
out is an Static variable which is declared in System class and is of type - PrintStream if out is a static variable , then how come an variable can access method ? ============================================================= Here "out" doesn't call a method : out is a variable which is actually holding an reference to an object (and the object here is an instance of PrintStream Class) on which you can call a method.(println())
Hi Naveen , What's the diff btn System.out & System.err ,When ever we refer to any blog we get only one ans i.e. err is used to promot the error msg to the console ,nd out for General output. What's ur takes on this .Any in-depth ans can I get it or even a video will be also fi9 .
I couldnt get the statement ,when the class is loaded static variables are initialised.i know that when a class is loaded into memory static block is executed.can someone explain me this concept of initialising the static variables at time of class loading.
Loading (loads the required class/jar files), Linking (assigning references and verification) and Initialization (initializing static variable and execution of static block )
This is the first time I'm seeing JNI related details. Really useful. Thanks brother
Never thought about it in-depth. Thank you so much Naveen for the detailed explanation. Kudos to your efforts and unique content.
I was searching for this answer from a long time and finally got the clarity. Thank you so much Naveen.
Your channel is my daily routine... I learn something new everyday. Thanks for nice explanation
My pleasure 😊
This is so deep and insightful! Thank you so much
Always interesting things comes from your channel sir thank you Naveen sir
Awesome! Very useful to know. Such detailed explanation are found nowhere else. Thank you so much.
Cleared with all my doubt , Thanks
Thank you for making this in-depth exposition of this topic, you really clarified all the obscure aspects of this topic. Thank you so much.
Very good information, Thank You So Much Naveenji.
Brilliant Naveen!! Really grateful for all this explanation.
You nailed it Naveen sir🤩👍
Many thanks Naveen for explaining in depth..really helps alot to understand the internal structure
Really helpful for the students from BSC like me 🙏🙏🙏 ❤️❤️❤️ Thank u so much sir 🙏
You are the same guy who said bullshit in the last live video? grow up and mind your language when you talk to your seniors like naveen and elders. this will help you when you work in a company.
@@ankitmahajan8295 That's why I realised and said sry bro and even u don't know my scenario as I lost my super chat twice and after that I've done another super chat and sir didn't even picked that one so in that mood I've done like that I hope you understand my mistake
Great topic to discuss with friends . Thanks Naveen
Always welcome
2nd part of this question was interesting !!
yes it is :)
Such a depth explanation very nice 👍
Glad it was helpful!
Really deeply explained.
Hi Naveen. Have been following your articles and I loved it. Want to know how to prepare hacker rank for automation. Kindly let me know. Thanks.
Hi Naveen..
Variable "out" here is declared as public static final PrintStream out = null ;
1. Generally when we use final keyword, variables becomes constant (i.e, We cannot change it), but here we are updating variable using setOut0 native method.. Please clarify on this query..
2. Why should we use native method,rather than that we can develop a java method and use it right?
Please confirm us if it was used for the purpose of reusability.. TIA..
Thanks for all your efforts from the QA community.. It's nonpareil 😊👍🏻 May the force be with you 👍🏻
Hi, 1. We are not updating the final out variable, it's just getting initialized from the native method call by jvm.
2. They could have written the java code for that, but in java there are few concepts which are taken from C in the form of native support.
Very useful and deeply explained 👍
Glad it was helpful!
Great one Naveen
Hi, Naveen thanks for excellent teaching through your videos. I wish to request if you can make videos on Java documentation that would be helpful. For any automation engineer or software developer documentation plays a very important role. Please help us educate on it.
Thanks
Sure will do that :)
Hi Naveen Sir, “out” is by default a final variable, so how is it possible to override the final variable in java? Please clarify it
we are not overriding it, we are reinitializing it. Final variables can be reinitialized.
Helpful information.
That's Helpful :) Thanks a Ton @naveen
Thank you so much sir 🙏🙏 very nice explained
Most welcome
Good knowledge. Thanks
It was way to deep snd detailed.. 🙂👍🙏
glad that it helped you :)
Important 🙏
@naveenautomationlabs
Why can't we create an object of printstream class and access println method? Please explain
Hi Naveen, Thanks for the good explanation. I need small clarification here. While executing the c program which compiler has been used? As I know c files will be executed in gcc compiler. That means inside jvm is there any gcc compiler available? Can you clarify on this. Just for curiosity am asking.
Using JNI a java program has the capability to call the native C code. Java native interface (JNI) is a framework provided by java that enables java programs to call native code and vice-versa.
Thnx for this ....Even I was thinking same
thanku very nice lecture
Thanks naveen
Hello Naveen,
Plz start a next series on Java stream, immutable array, now a days lot of companies asking same question
very informative!
out is an Static variable which is declared in System class and is of type - PrintStream
if out is a static variable , then how come an variable can access method ?
=============================================================
Here "out" doesn't call a method : out is a variable which is actually holding an reference to an object (and the object here is an instance of PrintStream Class) on which you can call a method.(println())
It means that JNI can manipulate variables the way it wants inspite of setting it as final?
I have one question what actually happens when you try to link 2d aray in inside main(String [ ] [ ] ?
I have a doubt. With which value out method gets inicialized? If it is a reference... a reference to what?
Hi Naveen ,
What's the diff btn
System.out & System.err
,When ever we refer to any blog we get only one ans i.e. err is used to promot the error msg to the console ,nd out for General output. What's ur takes on this .Any in-depth ans can I get it or even a video will be also fi9 .
in which scenario value of final variable can be changed?
when out=null is passed to native method setout0(printstream out) then what is happening ?
sir plz guide mera college me subject b.com the or me software testing ka course kar raha hu to kya IT company me job lagne ke chance he kya?
instead of using the system class why don't we directly use the PrintStream class for using the println method?
Thank you brother
Welcome
👍👍
Why we are directly not using PrintStream instead of System.out to print something?
what about printf and print
kindly start python series
Hi Naveen,
Can you plz explain
driver.switchTo().alert().accept();
in same manner??
Not clear about how JVM internally calls setOut method.
I couldnt get the statement ,when the class is loaded static variables are initialised.i know that when a class is loaded into memory static block is executed.can someone explain me this concept of initialising the static variables at time of class loading.
The concept is same as it is for static block and main method.
Loading (loads the required class/jar files), Linking (assigning references and verification) and Initialization (initializing static variable and execution of static block )
pl give my interview......
Thanks brother