What’s a deadlock?
No Answer is Posted For this Question
Be the First to Post Answer
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
what is purpose of collections.unmodified() method..?
Where and how can you use a private constructor?
What is java oops?
which one the better thread emplemented thread or extended ?
Is it compulsory to have atleast one abstract method in abstract class?
What are java packages? What is the significance of packages?
What about features of local inner class?
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 a class object?
is memory to the abstract class allocated ..or objects not instantiated
What is multiple inheritance? Is it supported by java?