Java - Synchronized, Transient and Volatile Modifiers

  Рет қаралды 48,127

TutorialsPoint

TutorialsPoint

Күн бұрын

Пікірлер: 18
@TutorialsPoint_
@TutorialsPoint_ Жыл бұрын
Check out our trending course on Java Essential Training - bitly.ws/LGbp Use coupon “KZbin 12” to get “FLAT 12%” OFF at checkout.
@CrickVlog
@CrickVlog 6 жыл бұрын
**Correction: Volatile keyword can be used with static keyword. Thanks.
@madhavpatil3786
@madhavpatil3786 4 жыл бұрын
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
@mohammadalam2151
@mohammadalam2151 3 жыл бұрын
Excellent explanation Monica make more videos on multithreading and concurrency
@ambidextrousTrades
@ambidextrousTrades 5 жыл бұрын
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.
@ioanadobos2840
@ioanadobos2840 4 жыл бұрын
Omg why are you all so mean, this was a great explanation, thanks Monica:)
@suryaprataprout1210
@suryaprataprout1210 5 жыл бұрын
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.
@saicharan8675
@saicharan8675 4 жыл бұрын
Very informative
@Vinod_Kumar827
@Vinod_Kumar827 5 жыл бұрын
very good explanation. thanks
@MaheshMahi-mf2nr
@MaheshMahi-mf2nr 6 жыл бұрын
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?
@H4nek
@H4nek 5 жыл бұрын
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.
@sriramakrishnan102
@sriramakrishnan102 5 жыл бұрын
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
@rameshkumarkrishnasamy
@rameshkumarkrishnasamy 6 жыл бұрын
Please re-verify Volatile and static keyword points.
@shaktisinghmojawat6253
@shaktisinghmojawat6253 4 жыл бұрын
When you say "It's nothing but", it's finished there, how can you explain it further.
@maximealise4842
@maximealise4842 6 жыл бұрын
stop() is not from Runnable.
@xXHyperDucksXx
@xXHyperDucksXx 6 жыл бұрын
It isn't, no... but it doesn't have to be. It's their own implemented method.
@sachida23
@sachida23 3 жыл бұрын
This is not the way of explanation be like techie and get the depth and explain in through diagram
@mdnazish9397
@mdnazish9397 4 жыл бұрын
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; ,,,/ ...
Java - Access & Non Access Modifier Example
20:16
TutorialsPoint
Рет қаралды 15 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 97 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 65 МЛН
Java - Access Control Modifiers
16:03
TutorialsPoint
Рет қаралды 33 М.
Java - Serialization & Deserialization
16:10
TutorialsPoint
Рет қаралды 150 М.
LinkedList vs ArrayList in Java Tutorial - Which Should You Use?
11:43
Coding with John
Рет қаралды 612 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 777 М.
Java threads 🧵
16:01
Bro Code
Рет қаралды 124 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 976 М.
What is collection? | Core Java Tutorial | Mr. Hari Krishna
29:05
Naresh i Technologies
Рет қаралды 113 М.
#51 This and Super Method in Java
12:11
Telusko
Рет қаралды 131 М.