Tuesday, August 10, 2010

Java heap space error in eclipse

Step 1: Create a shortcut for eclipse.exc

Step 2: Right click eclipse short cut and add target value with “-vm "C:\Program Files\Java\jre1.5.0_08\bin\javaw.exe" -vmargs -Xmx1024M -XX:MaxPermSize=512M”
Like “D:\eclipse.exe -vm "C:\Program Files\Java\jre1.5.0_08\bin\javaw.exe" -vmargs -Xmx1024M -XX:MaxPermSize=512M”




Step3 : start eclipse by clicking on the short cut created.

private methods on Interface

  Private methods can be used on interface from java 9.   This will help in     Avoiding code duplication.     Ensuring code re-usab...