JAVA – How do you assert that a certain exception is thrown in JUnit 4 tests? JUnit provides an option of tracing the exception handling of code.
Download and Install Samsung Galaxy S8 Launcher apk in your Samsung device. Samsung has transformed the system how it looks because
java.lang.UnsupportedClassVersionError is a quite common error after NoClassDefFoundError or ClassNotFoundException
Printing array values in Java or values of array element in Java would have been much easier if arrays are allowed to directly prints its values whenever
JAVA – How to generate a random alpha-numeric string? Generate a random alpha numeric string whose length is the number of characters specified.
Reflection in Java In Java, it is possible to inspect fields, classes, methods, annotations, interfaces, etc. at runtime. There is no need to know how classes or methods are called,…
To permanently turn on line numbers in IntelliJ IDEA (and other JetBrains IDEs): Go to File > Settings… Then go to Editor > General > Appearance. Check the Show line numbers box. Click Apply and OK. Line numbers are now permanently turned on….
Pass-by-value The actual parameter (or argument expression) is fully evaluated and the resulting value is copied into a location being used to hold the formal parameter’s value during method/function execution….
The use of scriptlets (those <% %> things) in JSP is indeed highly discouraged since the birth of taglibs (like JSTL) and EL (Expression Language, those ${} things) over a…
GUID : A GUID (Global Unique Identifier) is Microsoft’s implementation of a unique identifier (UUID). In its simplest form, Guid lets we generate raw GUID formatted strings: Let’s generate a new Guid…