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

Why is core java important?

576


Tell me the Importent classes in net package?

1582


How do you check if a string contains only numeric digits?

620


How is hashset defined in java?

519


Why array is used in java?

521






What is class and its types?

543


How long will it take to learn java?

511


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2063


Is set thread safe java?

504


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

640


Which container method is used to cause a container to be laid out and redisplayed in java programming?

605


Is void a keyword in java?

598


What restrictions are placed on method overloading in java programming?

575


How do you differentiate abstract class from interface?

532


Why wait and notify methods are declared in object class?

601