What is the difference between parameters and arguments ?
Answers were Sorted based on User's Feedback
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 |
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 |
What are variable arguments or varargs?
Why is the type for real numbers called double?
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?
How many threads does a core java have?
How do you use spaces in java?
can any one send me the example program of immutable class?
Can we access a database using applets?
Is there any tag in htm to upload and download files?
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.
how to convert Java project into Maven ?
What are the characteristics provided in jdk1.6 apart from other versions?
When abstract methods are used?