What is the difference between throw and throws?
Answer Posted / anjna garg
throw is always use in catch eeception and throws is not
use in catch exception
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Why does java have two ways to create child threads? Which way is better?
What are three types of loops in java?
Is string a data type in java?
How dead lock situation occurs in java and how you can identify it?
Why do we need wrapper class?
Can a constructor have different name than a class name in java?
What is the difference between Java1.4 and Java1.5
How can we find the actual size of an object on the heap?
What is primitive data type in java?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
What is output buffer?
Can we write multiple catch blocks under single try block?
what do you mean by classloader?
What is a finally block? Is there a case when finally will not execute?
what do you mean by java annotations?