What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-03 04:30:38
Unchecked exception
1) All the subclasses of Throwable class except error,Runtime Exception and its subclasses are checked exceptions. 2) Checked exception should be thrown with keyword throws or should be provided try catch block, else the program would not compile. We do... Add solution -
Other 2022-01-28 20:45:58
checked vs unchecked exceptions
1) All the subclasses of Throwable class except error,Runtime Exception and its subclasses are checked exceptions. 2) Checked exception should be thrown with keyword throws or should be provided try catch block, else the program would not compile. We do... Add solution -
Other 2022-01-22 01:55:23
how to know if certain exception is checked or unchecked
1) Look at the hierarchy, if that exception extends RuntimeException then it is an UNCHECKED exception if that exception extends Exception, Throwable or any other Checked Exception, then it is CHECKED exception. 2) Throw it, if it compiles, it is an UNC... Add solution -
Other 2021-11-14 05:58:14
exception
In java exception is an object. Exceptions are created when an abnormal situations are arised in our program. Exceptions can be created by JVM or by our application code. All Exception classes are defined in java.lang. In otherwords we can say Exceptio... Add solution -
Other 2021-10-23 13:12:07
automate test database
First of I have to connect to the database Connection connection: DriverManager.getConnection(url, username, password)//throws SQL exception Statement statement: connection.CreateStatement() //throws SQL exception:checked exception ResultSet resultSet: st... Add solution -
Other 2021-10-20 15:13:09
do Unchecked Exceptions require throws
does Unchecked Exception require handling ? Checked Exceptions occur at the runtime of the program. These are also known as Runtime Exceptions. With RuntimeExceptions It is not a requirement to handle or catch them at compile time. Add solution -
Other 2021-10-16 07:37:05
how to do database testing in your framework
For database testing For manual I use Oracle sql developer for producing SQL queries FOR AUTOMATION; I use JDBC library to integrate java by getting a CONNECTION from oracle database then creating STATEMENTS using SQL queries and then storing the data int... Add solution -
Java 2021-10-06 23:13:02
exceptions in java
In java exception is an object. Exceptions are created when an abnormal situations are arised in our program. Exceptions can be created by JVM or by our application code. All Exception classes are defined in java.lang. In otherwords we can say Exceptio... Add solution -
Other 2021-09-26 01:30:03
indexoutofboundsexception java
IndexOutOfBoundsException is a subclass of RuntimeException mean it is an unchecked exception which is usally thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.e.g using List. You can check... Add solution
Best helpers
Shaples
+5
Tranquilled
+5
Kozuch
+5
Big D Rock
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5
Tony_Henrich
+5