What is the difference between method and means?
No Answer is Posted For this Question
Be the First to Post Answer
What are class types in java?
Describe what happens when an object is created in java ?
what is different between static and non static methods ,using example
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 execute java program without main method?
How to change the priority of thread or how to set the priority of thread?
When should I use singleton?
What is serialVersionUID and what is its need?
How do you check if two given string are anagrams?
"we cannot create an object of interface but we can create a variable of it".diacuss the statement with the help of an example.
Can we instantiate interface in java?
finalize() method?