Differentiate between postfix and prefix operators in java.
No Answer is Posted For this Question
Be the First to Post Answer
How many bytes is 255 characters?
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 java and their uses?
What is yielding and sleeping? how they different?
List some important features of java 10 release?
How do I write a self declaration?
What does s mean in regex?
Can we have 2 main methods in java class?
What is a get method?
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
Is math class static in java?
Can we have a abstract class withought any method? What is a purspose of this?