java -Xmx16gb -XX:SoftMaxHeapSize=4G code example
Example 1: java
System.out.println(something)
Example 2: java
class Anupam
{
public static void main(String...args)
{
System.out.println("HI this is Anupam Guin from Kolkata,INDIA");
}
}