Which of the following statements is TRUE of photoelectric effect?