Java is programming language and most of the devices has java in their Machin to run applications built on java
1. What is the super class for Short, Long, Double and Integer?
The java.lang.Number is an abstract class containing subclasses Byte, Short, Long, Double Float, BigDecimal, BigIntegr and Integer. The subclasses to Number must provide methods to convert the represented numeric value to byte, short, double, float and int.
2. How many objects will be created for the below statements?.
String name ="abc";
String anotherName = new String("abc");
In this example, there are two objects will be created by the JVM but one with