What do you want to save?
Add Code snippet
New code examples
-
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 -
Java 2021-10-06 06:45:03
java new localdatetime
import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.Month; /** * Java Program to demonstrate How to use LocalDateTime class in Java 8. * LocalDateTime is LocalDate + LocalTime, i.e. date with time ... Add solution -
Java 2021-10-04 18:36:03
static member in java
The static keyword in Java is used for memory management mainly. We can apply static keyword with variables, methods, blocks and nested classes. The static keyword belongs to the class than an instance of the class. The static can be: Variable (also ... Add solution -
-
Javascript 2021-10-03 16:58:02
how to print a certain position in javascript
//How to print a specific element in javascript /*====DESCRIPTION starts here===== You can output a specific element or position of a list/array by using the output statement which is console.log(). Within it, type in the name of the array in which yo... Add solution -
Javascript 2021-10-03 03:58:05
object destruction in javascript
In JavaScript, destructuring is when you decompose the properties of an object or the indexes of an array to separate them to create specific variables. This does not mean that these separated objects or arrays can never be used again in the program. Add solution -
Other 2021-10-02 03:36:05
anyof method vs allof method
-AnyOf- method is similar to "OR" = || logic in Java. We are checking 2 conditions and if either one is pass than test pass for example assertThat("John Doe" , anyOf ( is ("John"), endsWith("oe")); //any of -->... Add solution
Best helpers
Ranking is empty