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 |
What is bubble sort in java?
Explain working of call by reference function invoking.
What's the base class of all exception classes?
Why main method is static in java?
class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes....
What defines function?
How do you check if two strings are equal in java?
What is the platform?
How to prevent to create multiple objects of a java class?
What is design pattern and there types?
What class allows you to read objects directly from a stream?
What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?