Java I/O Practice Test-1

Which is correct for flush() and close() method?