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???
2 Answers
+ 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.
0
Voww