Explain final, finalize() and finally?
Answer Posted / guest
we can declare final for class ,method,varible.
final varibles are unchangeble.
final classes are not subclassed.
final methods are not overriden.
finilize()
to clean up memory resourses for object using finilize().
finally block is executed if exception thrown or not.
| Is This Answer Correct ? | 100 Yes | 9 No |
Post New Answer View All Answers
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
Can a class be private or protected in java?
What is "this" keyword in java? Explain
Define Multiprogramming and Multiprocessing in java.
What is an iterator interface in java programming?
What are exception handling keywords in java?
How will you serialize a singleton class without violating singleton pattern?
Is a boolean 1 bit?
What is immutable in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Define jit compiler?
When would you use a static class?
What is prefix of a string?
What is stored procedure. How do you create stored procedure ?
Explain super keyword in java.