Can array grow dynamically in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

what is the reason behind non static method cannot be referenced from a static Context?

2 Answers  


What is abstract class? Explain

0 Answers  


Why is method overloading not possible by changing the return type in java?

0 Answers  


Is java a digit method?

0 Answers  


What is the difference between a factory and abstract factory pattern?

0 Answers  






Explain Connection Pooling?

3 Answers  


What is data member in java?

0 Answers  


Difference between operator overloading and function overloading

0 Answers   Tavant Technologies, Virtusa,


What is the platform?

0 Answers  


Explain the concept of polymorphism with examples?

6 Answers   Summation Tech,


What are thread priorities and importance of thread priorities in java?

0 Answers  


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?

6 Answers  


Categories