[Java] - Effects of not using the "volatile" declaration in | SheCodes

[Java] - Effects of not using the "volatile" declaration in a Java program for multithreading

Observing the effects of not using the "volatile" declaration in a Java program when executing across multiple threads and identifying the input value that causes the program to hang

More coding questions about Java

πŸ‘©β€πŸ’» Technical question

Asked 11 months ago in Java by Jennelyn

How would you explain the purpose and usage of try, catch, throw, and finally blocks in a way that's easy to understand?β€―β€― Share practical examples or analogies that can help clarify these concepts for someone with no prior experience in Java.

πŸ‘©β€πŸ’» Technical question

how to use if else in java?

πŸ‘©β€πŸ’» Technical question

the multiplicate operator isnt working in my Java code, how can I fix it?

πŸ‘©β€πŸ’» Technical question

class overload { int x; int y; void add(int a) { x = a + 1; } void add(int a, int b) { x = a + 2; } } class Overload_methods { public static void main(String args[]) { overload obj = new overload(); int a = 0; obj.add(6); System.out.println(obj.x); } }

πŸ‘©β€πŸ’» Java Code instructions

Using MVC, servlets, jsps and java maven how would i implement Intended redirects for logged in users. I already have a project using adlister I need to add this to it. using java maven

πŸ‘©β€πŸ’» Technical question

How do I use public Grade(String grade) in a code correctly

πŸ‘©β€πŸ’» Technical question

What is a String in Java

πŸ‘©β€πŸ’» Technical question

What does argument mean in Java?

πŸ‘©β€πŸ’» Technical question

String to Long java

πŸ‘©β€πŸ’» Java Code instructions

write a code to print the palindrome

πŸ‘©β€πŸ’» Java Code instructions

Write an algorithm with its corresponding code implementation in Java for Euclid's method of finding the GCD and the sieve of Eratosthenes.

πŸ‘©β€πŸ’» Technical question

how to install java

πŸ‘©β€πŸ’» Java Code instructions

Find fibonacci number example : fibo of 0 = 1 fibo of 1 = 1 fibo of 2 = fibo 0 + fibo 1 = 2 fibo of 3 = fibo 2 + fibo 1 = 3 fibo of 4 = fibo 3 + fibo 2 = 5 fibo of 5 = fibo 4 + fibo 3 = 8 write function int fibo(int number) -> return fibo value of paramerter. write code with possible small time complexity

πŸ‘©β€πŸ’» Java Code instructions

Asked almost 3 years ago in Java by Christina Ashley

Can you create a login and registration code for my java application?

πŸ‘©β€πŸ’» Technical question

Why is my else statement not working in java

πŸ‘©β€πŸ’» Technical question

can you show to example of the java function?

πŸ‘©β€πŸ’» Technical question

What is java?

πŸ‘©β€πŸ’» Java Code instructions

Asked 3 years ago in Java by Camila

For this method you will be given a numerator and a denominator and return true if they are reduced and false if not. public static boolean reduced (int num, int denom)

πŸ‘©β€πŸ’» Java Code instructions

Asked 3 years ago in Java by Camila

finally your friend needs a method to check if one of the players has won. This determines if either color has 0% remaining pieces. if one color has one you will return that color if no one has won you will return "NONE". public String hasWon (char[][] board)

πŸ‘©β€πŸ’» Technical question

Asked 3 years ago in Java by Camila

how to check if a string is bigger in length than the other in java

πŸ‘©β€πŸ’» Technical question

how to write a code with java that asks two addition math questions using random variables

πŸ‘©β€πŸ’» Technical question

Asked 3 years ago in Java by redsbloxmen

What is Java?

πŸ‘©β€πŸ’» Technical question

Asked 3 years ago in Java by Brandis

How do i create a loop function in Java using an array of cities?

πŸ‘©β€πŸ’» Technical question

whats the code for java alert message

πŸ‘©β€πŸ’» Technical question

is "body" a class

πŸ‘©β€πŸ’» Technical question

how to write an array?

πŸ‘©β€πŸ’» Technical question

Asked 3 years ago in Java by Kateryna

format the date time

πŸ‘©β€πŸ’» Technical question

Asked 3 years ago in Java by Shahrzad

would you explain polymorphism?

πŸ‘©β€πŸ’» Technical question

Asked 3 years ago in Java by Tahereh

what is java?