short keyword in java

” short” is a Java primitive type. A short variable can store a 16−bit integer. Example short height=6; short width=12; The short keyword can be used as a method parameter as below: 1 2 3 4 public void displayHeight(short height) {       System.out.println("Height is "+height); } public void displayHeight(short height) { System.out.println(“Height is […]

Share this article on