Answer Posted / ss
The finally is Java keyword that is used to defined a block
that is always executed in a try-catch-finally statement.
try{
int x=10/2;
}
finally{
system.out.println("i am from finally");
}
here compiler will not compliant.why?even though x=10/2,x=10/0.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What about interthread communication and how it takes place in java?
What is anti pattern in cyber security?
What happens when you add a double value to a string?
What is null data type?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Why enumeration is faster than iterator?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
What does business logic mean?
Is it possible to write a regular expression to check if string is a number?
How to avoid memory leak in java?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
How to perform quicksort in java?
What are the different types of java?
Which are different kinds of source code?
What are the different types of garbage collectors in java?