class Biba {{ System.out.println("Hi"); } Biba() { System.out.println("Inside Constructors"); } Biba(int a) { System.out.println("Inside Constructors 1"); System.out.println(a); } public static void main(String[] args) { System.out.println("Start"); Biba s2 = new Biba(); //Biba s3 = new Biba(45); System.out.println("Stop"); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter