Answer Posted / pathan muzafar
Finally is a keyword which is used execute the blocks after try and catch blocks even if exception occured or not in both try and catch block.
Note: Here,Block means collection of statements(variables,methods etc)....
Exception means Run time error during execution
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can java object be locked down for exclusive use by a given thread?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What is the difference between overriding and overloading in OOPS.
How do you implement singleton class?
Differentiate between the constructors and methods in java?
What is boolean logic?
What does int [] mean in java?
What super () does in java?
What does arrays sort do in java?
Can a method be overloaded based on different return type but same argument type?
What is the primary benefit of encapsulation?
Why char array is favored over string for the storage of passwords?
Is hashmap thread safe?
How do you reverse a string in java without using string buffer?