A variable is used to hold value. The value may vary in every usage.
An empty box is used to hold things. So, it can have in it the things we put in. The things to be held in the empty box,can change upon every usage. So, an empty box is like a variable.
Chat with our AI personalities
Yes, an empty box is and No, polyhedrons don't have to be.
One, after which the box is no longer empty!
One, after which the box is no longer empty!
Reference variables in java is used to refer to an object. Its a way to access another variable or memory address with a variable and change the data inside the memory address. It gives direct access to the memory access. example:- Box b=new Box(); b is the reference variable of type Box. It can hold reference to any instance of class Box. new Box() creates an instance of class Box. So b is now pointing to an object of class Box. shreya..
There is no box below!