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 |
Is char a data type in java?
question on Thread synchronization
if i have one string class then how can you achive this class functionality of this class?
how to create multithreaded program? : Java thread
What are the five major types of reference sources?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Outline the major features of java.
How do you add an element to a set in java?
How to instantiate static nested classes in java?
What about anonymous inner classes in java?
I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.
What is garbage collector?