What is the difference between parameters and arguments ?

Answers were Sorted based on User's Feedback



What is the difference between parameters and arguments ? ..

Answer / shadow

While defining method, variables passed in the method are
called parameters. While using those methods, values passed
to those variables are called arguments.....!

$HADOW

Is This Answer Correct ?    17 Yes 1 No

What is the difference between parameters and arguments ? ..

Answer / sadikhasan palsaniya

when defining a method like
public static void show(int a,int b){}
here variable a and b is parameter.

public static void main(String...string){
show(10,20);
}

here 10 and 20 is argument for show method.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are variable arguments or varargs?

0 Answers  


Why is the type for real numbers called double?

0 Answers  


They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run?

3 Answers   DNS, Wipro,


How many threads does a core java have?

0 Answers  


How do you use spaces in java?

0 Answers  






can any one send me the example program of immutable class?

2 Answers   Arfin, TCS,


Can we access a database using applets?

2 Answers   Hewitt,


Is there any tag in htm to upload and download files?

0 Answers  


Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.

0 Answers  


how to convert Java project into Maven ?

0 Answers   Infosys,


What are the characteristics provided in jdk1.6 apart from other versions?

3 Answers   TCS,


When abstract methods are used?

1 Answers  


Categories