Welcome to My New Java programming Blog
Constructor and Keywords
Today we are going to learn about Constructor. What is Constructor? Constructor is used for Initializing instance specific Information in a block and it will named as Constructor because it will construct the entire class. How is Constructor looks? I.Constructor has a class name but it is not class because it doesn’t have the keyword…
Pattern programs in Java
Today, we are going to do some pattern programs. public static void main(String[] args) {for(int no=1;no<=3;no++) {for(int col=1;col<=3;col++) { }} Output: 111222333 public static void main(String[] args) {for(int no=1;no<=3;no++) {for(int col=1;col<=no;col++) { }} output: 122333 public static void main(String[] args) {for(int no=3;no>=1;no–) {for(int col=1;col<=no;col++) { }} Output: 333221 From the above Programs we can see…
Follow My Blog
Get new content delivered directly to your inbox.