I would like to understand on how a memory fragmentation can occur by writing some bad code in the java user space.
Please point out me with some ideas which can help me to understand this.
In my understanding I was thinking like, java heap fragmentation can only occur because of buggy Garbage collection, but some of my friends argued for the opposite.
I just want to understand that Java Heap fragmentation can occur by writing bad java code applications as well.
NB: I am looking for code snippets which can demonstrate this argument.
UPDATE:
Actually the jvm which we have in the embedded device is java 1.3.
Thanks,
Sen