Use of final strings


#1

Hi , I know this is a basic question but can someone please explain to me why do we use the final strings?
for example the line :

private static final String DIALOG_DATE=“date”;

why do we need it for ?

why in here :
dialog.show(fm, DIALOG_DATE);

can’t we just use “date” instead ?

thank you