My question could be very stupid but please bear with me for a while.
In Java int is a Data type and Integer is a type in which int gets wrapped. If we talk about Hadoop, there is IntWritable is available intstead of Integer. (If am not wrong)
While studying most of the time its said that, in hadoop they use IntWritable because its good to transport large amount of data over network. Its okay..!
One thing I came across while doing this, whether its Integer or IntWritable, How differently they gets wrapped around int ? Where I can see the code which could show the wrapped difference around int ? If I see IntWritable class or Integer class, they seems to be a simple classes, but where the difference is happening when int gets egrained by Integer or IntWritable ?
I'm thinking as of now int as a core type of Java, and looking for what happens when int sits inside Integer or IntWritable in backend ? How it flows to become Integer or IntWritable ? I hope my question is cleared..! :)