0 Replies Latest reply on Nov 1, 2018 9:40 AM by Chirag Pandav

    Function Memory allocation at execution Time

    Chirag Pandav Newbie

      public class Temp3 {

       

         public void Method1 () {

         for (int i = 0; i < 30000; i++) {

        System.out.print("");

        }

        }

         public void Method2 () {

         for (int i = 0; i < 20000; i++) {

        System.out.print("");

        }

        }

       

      // if my whole code will take 60mb memory at run time then how much memory those methods take while execution-.......this is the question