Students are required to develop the following type of programs in Java language with internaldocumentation:1. Write a Class Date that takes day, month, and year while creating an object of this class. Find a new datewhen the number of days is given.2. Write a program to implement Boolean AND, OR, XOR, and NOT operations.3. Write…
import java.util.Scanner; class A { public static void main(String args[]) { int a; char b; double d; long e; byte f; boolean g; String h; a=10; b=’e’; d=23.1; e=44; f=11; g=true; h=”aaa”; System.out.println(a); System.out.println(b); System.out.println(d); System.out.println(e); System.out.println(f); System.out.println(g); System.out.println(h); } }
import java.util.Scanner; class A { public static void main(String args[]) { double d; System.out.println(“Enter a Number”); Scanner inp=new Scanner(System.in); d=inp.nextDouble(); System.out.println(d); } }
class Add { public static void main(String args[]) { int a,b,c; a=19; n=20; c=a+b; System.out.println(“Sum ”+c); } }
class A { public static void main(String args[]) { System.out.println(“Hello World”); } }