How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
No Answer is Posted For this Question
Be the First to Post Answer
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?
How do you declare a destructor in java?
When should I use singleton pattern?
How to create an immutable class?
What is run time polymorphism?
6 Answers eClerx, Elementus Technologies,
Can we override constructor in java?
What is the difference between stringbuffer and stringbuilder?
What is the exception hierarchy in java?
What does business logic mean?
Difference between a MenuItem and a CheckboxMenuItem?
What is an infinite loop? How infinite loop is declared?
What does 3 dots mean in java?