Explain final, finalize() and finally?
Answer Posted / vijay chaudhary
Finally is used with try catch for Exception handling
purposes. Whatever written in Finally will run except if
program exits abnormally.
a Try should have atleast one catch or finally.
| Is This Answer Correct ? | 23 Yes | 17 No |
Post New Answer View All Answers
What is thread life cycle in java?
What is void keyword?
Explain super keyword in java.
Explain about static imports in java?
What is sizeof in java?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
Why can't we override private static methods?
what is method reference in java 8?
Why do we use variables?
What do you know about java?
What is the difference between stream and buffer?
What is Applet Stub Interface ?
Difference between this() and super() in java ?
What is role of void keyword in declaring functions?
What is the purpose of sizeof operator?