Beautiful explanation!! You explained with heap and stack so it was easy to understand
@gowtham48032 жыл бұрын
Thanks mam ,it really helps me
@Sakthi-rf1ok3 жыл бұрын
Thank you mam .
@JegaBright3 жыл бұрын
இனிமை
@ajayprakash11673 жыл бұрын
class square { int length; int breadth; int height; square(int l , int b, int h){ length = l; breadth = b; height = h; } boolean isEqual(square s) { s.length++; if(length==s.length && breadth == s.breadth && height == s.height ) return true; return false; } int calculation() { return length*breadth*height; } } public class ValueReference { static void value (int a) { a++; } public static void main(String[] args) { int a = 10; value(10); System.out.println(a); square h = new square(2,3,4); System.out.println(h.calculation()); square j = new square(2,3,4); System.out.println( h. isEqual(j)); System.out.println(j.length); } } The value of 2 is not getting incremented for me
@Rajaram8208710 ай бұрын
Soln..??
@匿名-x5m7 ай бұрын
But new String() works differently, am I correct?
@thanipattavan Жыл бұрын
So overall ag primitive data type pass panna value ah pohum...mathapadi objects or non primitive pass pana reference ag tan ahum...apdiya??
@021_kalyanasundaramaero2 Жыл бұрын
Mam ithula appo stack memory entha reference um pass pannatha