(Undergraduate Program)
Name: Shahruk Alam Ahmed
ID: 2021587642
CSE215
Section: 16
, 1)1) String ptr = null;
1) 2) if (ptr.equals(“une”))
System.out.print(“Same”);
Else
System.ou,print(“Not Same”);
1)3) Object a[] = new Double[2];
A[0] = 4;
Object o = new Object();
String s = (String)o;
System.out.println(s)
1) b) Puiblic class ExampleException extends Exception {
Public ExampleException() {
Super();
}
Public ExampleException (String msg){
Super (msg);
}
Public class NegaticNumberException extends exception {
Public NegativeNumberException () {