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 keywordContinue reading “Constructor and Keywords”
Author Archives: gulasshiva
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 seeContinue reading “Pattern programs in Java”
Java Basic Programs
Hello everyone, Today i’m gone do some basic programs in java using looping and also explain what is looping and why is it used. Looping: while(count<=5) {System.out.println(a);a=a*11;count++;} In the above Program a same method is running again and again for three times. So whenever a repeated process is going on we can use Looping .Continue reading “Java Basic Programs”
Basic Java Programs
Hello Everyone, This is my first time in WordPress and I am quite excited about this. My first post is about basic java programs and I hope it is useful for the basic java learners. So,lets starts Programming, The First Programm is about how to Print no.1 five times using looping method. public class Oneprinted5timesContinue reading “Basic Java Programs”
My First Blog Post
Be yourself; Everyone else is already taken. — Oscar Wilde. This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.
Introduce Yourself (Example Post)
This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how your blog looks. Don’t worry if you haven’t given it a name yet, or you’re feeling overwhelmed. Just click theContinue reading “Introduce Yourself (Example Post)”