Posts

Showing posts from July, 2024

File operation

 import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.Scanner; public class FileOperations {          public static void main(String[] args) {         Scanner scanner = new Scanner(System.in);         int choice;                  do {             System.out.println("\nFile Operations Menu:");             System.out.println("1. Create a File");             System.out.println("2. Update a File");             System.out.println("3. Delete a File");             System.out.println("4. Exit");             System.out.print("Enter your choice: ");             choice = scanner.nextI...

Bio Data

Image
  Name : M.K.Yuvarani Class: II M. Sc Computer Science  RegNo: P 23 Cs 400 College Name: GACAKUM (A) Faher Name : M Krishnasamy ccupation : Farmer Mother Name : K.Thilagamani Occupation : House Wife  Annual Income : 72,000 Blood group : "B ±ve" DOB : 01/01/2003 Email Id : yuvaraniy341@gmail.com  Phone No : 7708993586 Address Details: 1/321-Sastri Nagar(Ceylon colony) Kurungulam West ,Thanajavur-613303 Qualification details: B.sc (computer Science) Skills : Typewritting Hobbies : Hearing music, Gardening, cooking  AIM : Government Job (or) IT field 

Quiz program

 import java.lang.*; import java.io.*; class Questions { public String [][]qpa; public String[][]qca;  Questions()throws IOException { qpa=new String[10][5]; //questionsandobjectives// DataInputStream in=new DataInputStream(System.in); qpa[0][0]="What is the size of float and double in java?"; qpa[0][1]="1.32 and 64"; qpa[0][2]="2.32 and 32"; qpa[0][3]="3.64 and 64"; qpa[0][4]="4.64 and 32"; qpa[1][0]="number of primitive data type in java?"; qpa[1][1]="1.6"; qpa[1][2]="2.7"; qpa[1][3]="3.8";qpa[1][4]="4.9"; qpa[2][0]="arrays in java are?"; qpa[2][1]="1.object references"; qpa[2][2]="2.object"; qpa[2][3]="3.primitive data type"; qpa[2][4]="4.none"; qpa[3][0]="when is the object created with new keyword?"; qpa[3][1]="1.at run time"; qpa[3][2]="2.at compile time"; qpa[3][3]="3.depends on the code"; qp...