Articles, Home

Java Pass-by-Value vs. Pass-by-Reference – HowToDoInJava

There has been a good amount of debate on whether “java is pass by value or pass by reference?”. Well, lets conclude it last time, Java is pass by value and not pass by reference. If it had been pass by reference, we should have been able to C like swapping of objects, but we …

Articles, Home

Java Generic Methods

It is possible to generify methods in Java. Here is an example: public static T addAndReturn(T element, Collection collecti….