Check out our trending course on Java Essential Training - bitly.ws/LGbp Use coupon “KZbin 12” to get “FLAT 12%” OFF at checkout.
@CrickVlog6 жыл бұрын
**Correction: Volatile keyword can be used with static keyword. Thanks.
@madhavpatil37864 жыл бұрын
Hi Mam, Just a small correction at time 5:26 min, you said static keyword can not be used with volatile, but there in slide it says static keyword can be used
@mohammadalam21513 жыл бұрын
Excellent explanation Monica make more videos on multithreading and concurrency
@ambidextrousTrades5 жыл бұрын
I really appreciate your efforts but please be clear on the facts and the way you convey it. This is too confusing. Especially the explanation of volatile keyword.
@ioanadobos28404 жыл бұрын
Omg why are you all so mean, this was a great explanation, thanks Monica:)
@suryaprataprout12105 жыл бұрын
transient keyword cannot be used with static keyword i.e. is a Wrong Statement. please correct your statement. volatile keyword can used with static keyword and non static keyword. please share the valid statement.
@saicharan86754 жыл бұрын
Very informative
@Vinod_Kumar8275 жыл бұрын
very good explanation. thanks
@MaheshMahi-mf2nr6 жыл бұрын
if the volatile keyword is using wih the static keyword i.e static keyword makes the value of a variable constant so in that case what is the use of volatile keyword there?
@H4nek5 жыл бұрын
The individual threads will still make local copies of the fields they work with, even for the static fields. So to ensure that the value of the static field you're working with in a parallel environment is the most up-to-date, you should declare it volatile. Then, each read/write will be performed from/to the shared memory. Hope that's understandable. I'm still not completely sure what's shared between threads and what's not, because it happened to me that threads were working with local copies of a variable until I made it both static and volatile. But maybe that's an application-specific case.
@sriramakrishnan1025 жыл бұрын
static means it belong to class i.e it is common to all objects of the class. And more thing is that variable with static keyword doesn't mean it is a constant variable.constant variable are created using final keyword
@rameshkumarkrishnasamy6 жыл бұрын
Please re-verify Volatile and static keyword points.
@shaktisinghmojawat62534 жыл бұрын
When you say "It's nothing but", it's finished there, how can you explain it further.
@maximealise48426 жыл бұрын
stop() is not from Runnable.
@xXHyperDucksXx6 жыл бұрын
It isn't, no... but it doesn't have to be. It's their own implemented method.
@sachida233 жыл бұрын
This is not the way of explanation be like techie and get the depth and explain in through diagram
@mdnazish93974 жыл бұрын
I appreciate your efforts but "transient" keyword can be used with "static" keyword. No compile-time error and No runtime-error occure, while serialiazation or deserialization. ex: private transient static String password; ,,,/ ...