About Parameters Or Arguments Variable In Java Programming With Code Example, Sample, Eclipse, Java Class and Object and Tutorial.

Video: ClickMe

About Parameters Or Arguments Variable In Java Programming With Code Example, Sample And Tutorial

Output:

This is the example of Argument and Parameter

ParametersOrArgumentsVariablesInJava.java

package com.variables.tutorialbyexample;

public class ParametersOrArgumentsVariablesInJava {

public ParametersOrArgumentsVariablesInJava() {
// TODO Auto-generated constructor stub
}

public void print(Object oParameterOrVariableAlsoKnownAsVariable) {
// Storing the value of parameter or argument in local varible
Object oLocalVariable = oParameterOrVariableAlsoKnownAsVariable;
// Printing the local variable
System.out.println(oLocalVariable);
}

public static void main(String[] args) {

// New object creation of ClassOrStaticVariablesInJava
ParametersOrArgumentsVariablesInJava obj =
new ParametersOrArgumentsVariablesInJava();
obj.print("This is the example of Argument and Parameter");
}
}


Please like and share it!!!

3 comments: