Monthly Archives: August 2016

C# – EF lifetime of DBContext

The following article has a useful information on handling the lifetime of DBContext in EF. http://mehdi.me/ambient-dbcontext-in-ef6/

Posted in .NET, Programming | Leave a comment

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 exception to indicate the programming error. 3. Errors

Posted in Java, Programming | Leave a comment

Java – illegal generic array

The following code will have a compile error The reason is that it is not a typesafe. It will violate the generic type system in Java

Posted in Java, Programming | Leave a comment