FIRST JAVA PROGRAMMING import java.lang.*; import java.io.*; class Program { public String[][]qpa;public String[][]qca; Program()throws IOException { qpa=new String[10][5]; DataInputStream in=new DataInputStream(System.in); qpa[0][0]="Which of the following java operators is used for bitwise AND operation?"; qpa[0][1]="1.&"; qpa[0][2]="2.&&"; qpa[0][3]="3.&"; qpa[0][4]="4.||"; qpa[1][0]="What is the purpose of the finally block in java?"; qpa[1][1]="1.To handle exceptions"; qpa[1][2]="2.To execute code regardless of exceptions"; qpa[1][3]="3.To declare variables"; qpa[1][4]="4.To call methods"; qpa[2][0]="Which Java collection class is used to store unique elements?"; qpa[2][1]="1.ArrayList"; qpa[2][2]="2.HashSet"; qpa[2][3]="3.LinkedList"; qpa[2][4]="4.TreeSet"; qpa[3][0]="Which of t...
EXPLANATION : - File operations involve interacting with files on a computer system, allowing you to create, read, write, and delete files. Common operations include: 1. Open a file – Access a file to read or modify it. 2. Read from a file– Extract data from the file. 3. Write to a file– Add or modify data in the file. 4. Close a file– End the interaction with the file to free up system resources. 5. Delete a file – Remove the file from the system. These actions help manage data in programs and applicationsapplications PROGRAM:- import java.io.File; import java.io.*; import java.io.FileWriter; import java.io.FileReader; import java.io.BufferedReader; import java.io.IOException; class FSC{ public static void main(String args[])throws IOException { int i; DataInputStream d = new DataInputStream(System.in); String fileName = "msc1.txt"; do { System.out.println("\nwhich type of file operation you want to perform?"); System.out.println("\n1.file creatio...