C and C++ has constructors and distructors, why does Java
does not have distructors?
Because java has automatic garbage collection feature and java
does not let you illegally or accidentally release memory
occupied by an object.
Is This Answer Correct ? | 7 Yes | 1 No |
Difference between error and exception
Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can you improve this?
Is JRE required to compile Java files ?
In which order the iterator iterates over collection?
Difference between Array and vector?
How do you initialize an arraylist in java?
There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....
Explain the different forms of polymorphism?
Write a program to print 15 random numbers using foreach of java 8?
Why do we need variables?
How to instantiate member inner class?
How many types of classes are there in java?