Java Programming Fundamentals

Time: 00:00:00
0
Attempted
13
Not Attempted
0
Marked For Review
0
Attempted & Reviewed

Question 1 of 13

  1. Assume that in the current directory test.txt file is already exist. What will happen when you execute the following code? import java.io.*; class Test { public static void main(String args[]) { try { File file = new File("test.txt"); file.createNewFile(); } catch (IOException ex) { ex.printStackTrace(); } } }
Select Your Answer:

All Questions

Attempted
Not Attempted
Marked for Review
Attempted & Reviewed
Current