• Parameter Constructor and overloading

    What is parameter constructor? – In java program, when we set same class name and method name that is called constructor structure in java program and when we set parameter as constructor method it’s called parameter constructor. – Constructor method does not have return type. – 3 types of constructor available in java program. – […]

  • Default Constructor in java program

    What is default constructor? – In java program, when we set same class name and method name that is called constructor structure in java program. And when we set null argument as method it’s call default constructor. – Constructor method does not have return type. – 3 types of constructor available in java program. – […]

  • Object passing as a argument in Java Program

    How to object passing works in java program? – In some example, we need merge calculation of more than one object data, that time we can use object passing feature in our program. In this blog program we calculate one company’s two years profit, investment and total income calculation.     Let’s see example on […]

  • Getter – Setter Methods in Java Program

    What is Getter Setter Methods? – Getter Setter Methods are working to get data from class and to set data in class. This is one easy process for all programmers. We can also use constructor. But getter – setter is very easy and flexible for all java developer.   Let’s see example on Getter Setter […]

  • Instance Variable Hiding in java program – “this keyword”

    What is Instance variable Hiding in Java Program? – When our instance variables (class variables) are same with parameter variables that time have to specified our class variables so that time we use “this keyword” in our program. – At that time we hide instance variable in “this keyword”. So we can call instance variable […]

  • Method overloading in java program

    What is function or method overloading in java program? – In one class, when we create two same name methods and give different parameters, this is basic set of creation function or method overloading in program. – Then after, we call these method from our main class, that time compiler take some time to check […]