Multiple choice Which of the following methods is/are defined in the File class in Java? getPath() getName() length() Both (1) and (2) All of the above Reveal answer Fill a bubble to check yourself E Correct answer Explanation As explained that all of the given methods are defined in the File class. So, this is the correct answer.