Java - exceptions
Java has 3 different types of exceptions. 1. Checked exception - Use this exception for a case which can be recoverable. 2. Runtime exception - Use this exce...
Java has 3 different types of exceptions. 1. Checked exception - Use this exception for a case which can be recoverable. 2. Runtime exception - Use this exce...
The following code will have a compile error 1 new List<E>[]; The reason is that it is not a typesafe. It will violate the generic type system in Java
1 2 3 4 template <boolB, typename T> class enable_if {}; template <typename T> class enable_if<true, T> {typedef T type}; Above code will ...
C++11 allows us to specify the underlying type for enum class as shown below. If specified value is not in the range of the underlying type, compiler can cat...
Sometimes, a project can depends on another project which is in different git repository. Git can provide a way to maintain this dependencies by a command ca...