Q40
Single choice
Given:
21. TextField tf = new TextField("Memo", "", 50, TextField.ANY);
22. DateField df = new DateField("Date", DateField.DATE_TIME);
23. Form fm = new Form("Form demo");
24. Command cmCount = new Command("Word count", Command.ITEM, 1);
25. Command cmExit = new Command("Exit", Command.EXIT, 1);
26.
27. tf.addCommand(cmCount);
28. fm.append(df);
29. fm.append(tf);
30. fm.addCommand(cmExit);
31. fm.setCommandListener(this);
Which is true?