UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What does the synchronized keyword in Java mean?

Asked by Last Modified  

3 Answers

Learn Java

Follow 1
Answer

Please enter your answer

synchronized is a Java keyword. It means that the method cannot be executed by two threads at the same time and the JVM take care of enforcing that. In C++, you will have to use some synchronization construct, like a critical section or a mutex.
Comments

Java Expertise

The synchronized keyword is all about different threads reading and writing to the same variables, objects and resources. We can able to provide a solution for race condition(accessing more than one thread in same resource) in thread by using synchronized keyword. we can able to use synchronized keyword...
read more
The synchronized keyword is all about different threads reading and writing to the same variables, objects and resources. We can able to provide a solution for race condition(accessing more than one thread in same resource) in thread by using synchronized keyword. we can able to use synchronized keyword in method and block, so that it will create object lock or class level lock as per our requirement which restrict to access more than single thread at a time. read less
Comments

IT Professional Trainer with 13 years of experience in IT industry + Academics

synchronized keyword is used in Multithreading. when more than one threads are asking for the same resources to get execute then there should be mutual exclusion between threads that one thread has completed its execution then only another thread can enter into the proecss. It can be achieved by defining...
read more
synchronized keyword is used in Multithreading. when more than one threads are asking for the same resources to get execute then there should be mutual exclusion between threads that one thread has completed its execution then only another thread can enter into the proecss. It can be achieved by defining a method which has to be synchronized or the object of the class has to be synchronized read less
Comments

View 1 more Answers

Related Questions

What is the difference between abstraction and encapsulation?
Encapsulation is wrapping, just hiding properties and methods. Encapsulation is used for hide the code and data in a single unit to protect the data from the outside the world. Class is the best example...
Neval
What are the different types of Exceptions in Java?
Null pointer exception ArrayOutOfIndex exception DivideByZero exception
Aakanksha
How many classes will it take to learn core Java?
25-35 . depends on the student's previous knowledge on any programming languages
Gene

I am a fresher and I want to become a Java developer, so what is necessary to crack the Java interview ? 

For an interview, you should prepare all the basic questions of Java , class, function and OOP concepts.
Dipesh
When we are used the compiler and interpreter? what is the difference between them?
Java code is the best example of compiled as well as interpreted. Java Compiler does the task of compiling . Java file to .class file(binary form). JVM works as interpreter to let Operating system understand the compiled code instructions.
Shilpa

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Recommended Articles

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more