what is wrapper class and its uses?
Answers were Sorted based on User's Feedback
Answer / vijayakumar chinnasamy
A class enclosed or Wrapped the primitive data type is
called wrapper class.
Number class is the super class for Wrapper class. subclass
of Number classes are Byte,Short,Intger,Long,Float,Double,
Character
primitive values Wrapper class
byte Byte
short Short
int Integer
long Long
float Float
char Character
Mostly the wrapper classes are used to pass the date thru
networks/serializable.
| Is This Answer Correct ? | 3 Yes | 2 No |
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
How many types of java are there?
Is null a value?
Is string a class?
What primitive Java types? Howmany are they and what are their names?
What is the default size of load factor in hashing based collection?
How to provide security in java
0 Answers Infosys, TCS, Tech Mahindra,
How to declare objects of a class ?
0 Answers Akamai Technologies,
Can we create our own daemon thread?
What happens if an exception is throws from an object's constructor?
Can we override static methods in java?