How many types of flags are there?
No Answer is Posted For this Question
Be the First to Post Answer
What is protected in java?
Can a class have an interface?
What is Interface?
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?
In Java why we write public static void main(String args[]) why not main()?
46 Answers Aptech, GE Healthcare, Infosys, Microsoft, New Horizon, Practical Viva Questions, TCS, Wipro,
Why Java is not purely object oriented?
50 Answers Elitecore, Persistent, Reliance, Wipro,
Which number is denoted by leading 0x or 0x in java?
What are keyboard events?
Can private class be extended java?
How many Java environments are there?
1 Answers Phantom Technologies,
How to solve the problem of generating the unique hash keys with hash function?
Are there structures in java?