How do you trim a space in java?
What is a platform?
10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } } 10. What is the output of the following Java program? class Main { public static void main(String args[]){ final int i; i = 10; System.out.println(i); } }
Can we sort list in java?
What is java and their uses?
What is HashTable?
Why synchronization is important?
What is the program compilation process?
How do constructors use this() and super()?
What is the difference between procedural and object-oriented programs?
What is data string?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.