Is Java Class Threadsafe ????? How to make Java class Thread
safe??
Answers were Sorted based on User's Feedback
Answer / bojjanna
By Default java class a not tread safe, i we make a tread
safe we have three ways
1) avoiding the instance variables
2) by using Sycrinization
3) by using Syncronize block
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / divya
using synchronization,immutable objects,thread safe wrappers
Is This Answer Correct ? | 0 Yes | 1 No |
What is ResourceBundle class?
What is a java developer salary?
Why is java so important?
Can Anybody tell the diff b/w jdk1.6 and latest version.
abstract class Demo { public void show() { System.out.println("Hello I am In show method of Abstract class"); } } class Sample extends Demo { public void show() { super.show(); System.out.println("Hello I am In Sample "); } } public class Test { public static void main(String[] args) { //I WANT TO CALL THE METHOD OF BASE CLASS IT IS POSSIBLE OR NOT CAN WE USE SCOPE RESOLUTION OPERATOR TO CALL OR JAVA NOT SUPPORTED THAT :: OPERATORE } }
Can multiple catch statements be used in exceptions ?
Can you access the private method from outside the class?
What is ++ a in java?
what is the final keyword denotes in java?
What is casting?
How to access arraylist elements in java?
How do you print array in java?