1.

Which of these methods returns the total number of bytes of memory available to the program?(a) getMemory()(b) TotalMemory()(c) SystemMemory()(d) getProcessMemory()I had been asked this question during an internship interview.My question comes from Java.lang in division Exploring java.lang & java.io of Java

Answer»

Right option is (B) TotalMemory()

To ELABORATE: TotalMemory() returns the TOTAL number of BYTES AVAILABLE to the program.



Discussion

No Comment Found

Related InterviewSolutions