One class having two method one as static n another as non-static, 2 threads are there t1 is accessing the static method and t2 the non-static method is it possible n both are sharing the same...
Type: Posts; User: dhasija
One class having two method one as static n another as non-static, 2 threads are there t1 is accessing the static method and t2 the non-static method is it possible n both are sharing the same...
thanks for correcting me,I have read the article, so here is my questions
Below I have written the immutable class, Please let me know
1) Whats wrong in my code
2) how may i test my immutable...
implementation that proves that instance variables are not thread safe
This is my code only, i need to know two things
1) Whats wrong in my code
2) how may i test my immutable class
import java.util.*;
import java.util.Map.Entry;
public final class...
That exactly was my question how may I test it if the above class is immutable or not
immutable object (it cannot be changed once it's created). you mau always correct me if im wrong
I have make the immutable class as below, Now my question is how I can test if my this class/object is immutable
package com.learning;
import java.util.*;
import java.util.Map.Entry;
public...
Hi please any one could suggest some good vedios / books/tutorials for java concurrency. Except for the Java Concurrency in Practice book
we can duplicate to the arraylist, and to add while iterating we use ListIterator
Ok thanks Cornix..
I have one more query whenever i'm adding the element to the list using listIterator, im getting outOfMemorryError
below is the code snippet I need to know why it should add...
How I can set key to the newly created Map.Entry as it just have the methos as setValue()
However payal inheritance is basically the reference of the base class and object of the subclass. If i will write the object of base class only then it will behave as a simple class.
Still I...
Query-2 : Your base class implements Serializable interface. In a happy go scenario both the base class and subclass objects will get serialized. Now I want that subclass object/properties doesn't...