0

Java is object oriented but how primitive types accepted by java.??

How the primitive datatype will go for memory?? and where the memory will create for wrapper classes and where memory will allocate for primitive datatypes???

28th Apr 2017, 4:04 PM
tharun
tharun - avatar
2 Réponses
+ 10
Primitives are stored in the stack. Objects are stored in the heap. The wrapper classes for the primitives are objects. Java is object oriented, but not pure oop, because it uses primitives as well.
30th Apr 2017, 6:11 AM
Tashi N
Tashi N - avatar
0
Voww
30th Apr 2017, 9:32 AM
tharun
tharun - avatar