java memory consumption...

for a program as simple as “Life, Universe and everything” a java program consumes 177 M of memory while same problem in C++ is solved with less than 5M memory. Why does Java consume so much memory? Is it because of I?O buffers?

1 Like

i have same question why no comments…

//