what is difference between throw and throws in exception?

Answer Posted / sakariya vikram

through is user defind exception this is created by user and
throughs is a jvm(system) defined exception.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the metacharacters are different from the ordinary characters?

571


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

602


How a string is stored in memory?

583


What are format specifiers in java?

603


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

587






How many wrapper classes are there in java?

538


What does the three dot emoji mean?

588


What is multiple inheritance? Is it supported by java?

530


What type of variable is error flag?

593


Which one of the following suits the description of a string better: derived or primitive?

515


How do you check whether the list is empty or not in java?

518


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

581


what is instanceof operator used in java?

597


What is a flag variable?

563


Which category the java thread do fall in?

575