What is the final variable?
Answer / nashiinformaticssolutions
In Java, a final variable is one that, once initialized, cannot be altered.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use String with switch case?
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?
What is java abstraction with example?
Can you extend more than one 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?
Which class should you use to obtain design information about an object in java programming?
How do you convert an int to a string in java?
What is difference between module and function?
What is bufferedwriter?
How do you make a thread in java?
What is the difference between arraylist and hashset in java?
How a class can implement an interface?