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!!!

4 comments:

  1. You have shared a nice article about the java Programming. Your service is very interesting and useful. I liked it. If anyone wants to learn java course, then visit Best Advanced Java & Data Structures Course In Delhi

    ReplyDelete

Please provide your input, it will honer for me...