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?

Answer Posted / cool_duzz

no.. final cannot be modified..

Is This Answer Correct ?    2 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the primitive type byte?

597


Is list ordered in java?

556


Why arraylist is used in java?

558


How many bits is a double?

538


Can you explain the final method modifier?

579






When does an object becomes eligible for garbage collection in java?

591


What is variable in java?

535


What is the epoch date?

579


What is JVM and is it platform independent?

572


Can an arraylist be empty?

570


What is boolean logic?

571


When is finally block not called?

588


Why stringbuilder is not thread safe in java?

582


What is void in java?

602


Can Exception handling we can handle multiple catch blocks?

650