1.Chapter 19Binary Input & Output Java IITP 1202. ChapterObjectives To understand how I/O is handled in JavaTo distinguish between text I/O and binary I/OTo read and…