![]() Related Questions Latest Answer : the code which has the probability of raising an exception is placed in the try block. the code for handling the situation when an exception occurs is placed in the catch block with the instance of the exception as the parameter. when an exception ... Latest Answer : Yes ... Latest Answer : No.. ... Read Answers (2) | Asked by : suresh A sub class probabaly has more properties then that of super class , then why I am able to catch all A sub class probabaly has more properties then that of super class , then why I am able to catch all exceptions by making the object of Exception class insted of its sub classes (while handling any exception by try,catsh,finally statement)? Is it necessary to use catch block while using try block? Can anybody explain me about it in detail.. I have problem with threads implementation in servlets the problem is the servlets which uses instance variablesand if we pass request from two diff servers the o/p generated is mis matching with each other.i have also userd synchronized block but it is not working well(servlet not implementing the single thread model ) Read Answers (1) | Asked by : vishal How to check infinity value ? i took very large number as string when i cast to float it gives infinity value. how to check at runtime or how to catch it?ex : String x = "111111111111111111111111111112222222222222222222222222222112222";System.out.println(Float.parseFloat(x));it gives infinity.so, how to catch it? Anybody can explain how it is going to work and why it works soclass A{ int a; A() { a=20; }}class Myth{public static void main(String S[]){final A ob=new A(); class B extends Thread { B() { start(); } public void run() { for(int i=0;i Read Answers (2) | Asked by : Rajesh Latest Answer : yes u can write but acid properties of the transactions is not fullfil we get .we will not fullfil atomicity property.if we give commit in finally block . if we rollback the transaction in any situation it is not possible . because it will be commited ... Read Answers (1) | Asked by : raju Latest Answer : Static variables belongs to class only and they will execute when they are displayed in System.out.println() statement. By default they have a fixed value.e.g for integer 0for float 0.0Static block is executed before main() because it has no need of object ... Read Answers (3) | Asked by : jitender
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||