Create a new file

Report a typo

What is the result of creating a file that already exists?

File file = new File("/home/file.txt");
boolean result = file.createNewFile();
Select one option from the list
___

Create a free account to access the full topic