Is list thread safe in java?
No Answer is Posted For this Question
Be the First to Post Answer
why java does not have operator overloading?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
What is the use of an interface?
Can u overload main()method.Give with example.
6 Answers IBM, Schimatic Technologies,
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
Java Compiler is stored in JDK, JRE or JVM?
How a class can implement an interface?
What are Advatages of Overloading and Overridding.
What are the new features in java 8?
How do you detect memory leaks?
Write a java program to get a string of words and print the numbers of each word count in descending order
Why char array is favored over string for the storage of passwords?