What is an exception?

Answer Posted / vikneswarank

when we write code and try to execute the that code error
may be occur in runtime or complie time complie time error
nothing but syntex error we can easily set right by
reediting suitable code runtime error is exception. we can
handle the exception use Exception class which is belongs
to java.lang. package using this class handle the exception
(try catch) block

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the static keyword?

586


Is null a value?

554


Can we convert stringbuilder to string in java?

552


What is private public protected in java?

568


Why is a string immutable?

539






What is garbage collection? What is the process that is responsible for doing that in java?

645


What is the longest unicode character?

689


Which is faster call by value or call by reference?

497


What is the driver class?

565


What are the six ways to use this keyword?

602


how are methods defined?

547


What environment variables are required to be set on a machine in order to run Java programs?

612


Explain about static imports in java?

595


What is the full meaning of java?

525


How can we achieve thread safety in java?

679