What is json parser in java?
No Answer is Posted For this Question
Be the First to Post Answer
How to create two different thread class inside a main function?
Explain the difference between string, stringbuffer and stringbuilder in java?
I dont want to use serialzable in java is there any another concept so plz tell me
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet
Why is logger singleton?
what is the default value of a variable char?(If not assigned)
What is a generic code?
List the three steps for creating an object for a class?
Is ++ operator thread-safe in java?
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 ResourceBundle?
2 Answers Elementus Technologies,
how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?