Is it possible for yielded thread to get chance for its execution again ?
No Answer is Posted For this Question
Be the First to Post Answer
What is the purpose of nested class in java?
What is the life-cycle of an object?
What is string pooling concept?
adapter 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?
Can we have 2 main methods in java class?
For technical interview question please sir send me because tomorrow my interview
I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }
What is internal iteration in java se 8?
What are assertions in java?
What are peerless components in java programming?
What is an anonymous class?