What is an array? An array is basically a collection of the your you
know your data types, it can either be primitives or your objects
or complex data types. Whatever you want to store you can store
it in an array. the syntax of arrays looks something like this. the
memory management works for arrays in Java and we 'll be doing
some nice things. syntax looks something like this so basically
here you will have the data type okay brackets brackets. Basically
means that this is an array. if I say I want to store some roll
numbers five roll numbers. I will explain in detail how this thing is
working internally how the memory management is happening.
How this is mapping to the object or whatever. the complete DsA
playlist check out the links in the description of the playlist. the
first session is set to be. hosted at the start of the week at the
end of the session.. The second session will be hosted on Monday
night at 8pm.. The session was hosted by the Java Language
Language Institute for Java..
This is basically known as dynamic memory allocation. that is
being created in the memory in the heap memory, and if you
want to learn about heap memory stack memory. We have a
separate video on that already that happens at run time. this is
how it works in Cc plus plus Java. Java says something different in
Java. There is no concept of pointers. it totally depends on the
JVM. You know whether this is going to be continuous or not okay
why because of this reason we know point number one. We know
that array objects are in heap. the heap is the runtime data area
from which the memory for all the classes and instances of like all
the arrays is allocated.. index index is just numbers that basically
means it 's like the um position of the array which starts from
zero. If you want to change something you say Arr of 3 is equal to
99. So basically this will be changed to 99.. If I 'm saying new int
dash like brackets 5. It will create an array object in the heap
memory of array size 5 that is what new is..
Null is a special literal of a null type so basically you can assign it
to any particular like you can cast it to a particular reference type
but you ca n't create a null type. null does not represent like a
database or database or whatever it 's null. For example, you can
compare it with none in C plus or Python. any reference variable
that you have by default. It 's going to have the null type. For
example, this is a reference variable Ros and it is not at this line.
It's not assigned to anything so you 'll be like Hey Kunal. What is
the value of this thing well. The value is by default going to be
null okay similarly, in integer arrays by the way we will talk about
how this thing works internally. Each object will be stored in
different parts of the memory.. objects are stored in heap
know your data types, it can either be primitives or your objects
or complex data types. Whatever you want to store you can store
it in an array. the syntax of arrays looks something like this. the
memory management works for arrays in Java and we 'll be doing
some nice things. syntax looks something like this so basically
here you will have the data type okay brackets brackets. Basically
means that this is an array. if I say I want to store some roll
numbers five roll numbers. I will explain in detail how this thing is
working internally how the memory management is happening.
How this is mapping to the object or whatever. the complete DsA
playlist check out the links in the description of the playlist. the
first session is set to be. hosted at the start of the week at the
end of the session.. The second session will be hosted on Monday
night at 8pm.. The session was hosted by the Java Language
Language Institute for Java..
This is basically known as dynamic memory allocation. that is
being created in the memory in the heap memory, and if you
want to learn about heap memory stack memory. We have a
separate video on that already that happens at run time. this is
how it works in Cc plus plus Java. Java says something different in
Java. There is no concept of pointers. it totally depends on the
JVM. You know whether this is going to be continuous or not okay
why because of this reason we know point number one. We know
that array objects are in heap. the heap is the runtime data area
from which the memory for all the classes and instances of like all
the arrays is allocated.. index index is just numbers that basically
means it 's like the um position of the array which starts from
zero. If you want to change something you say Arr of 3 is equal to
99. So basically this will be changed to 99.. If I 'm saying new int
dash like brackets 5. It will create an array object in the heap
memory of array size 5 that is what new is..
Null is a special literal of a null type so basically you can assign it
to any particular like you can cast it to a particular reference type
but you ca n't create a null type. null does not represent like a
database or database or whatever it 's null. For example, you can
compare it with none in C plus or Python. any reference variable
that you have by default. It 's going to have the null type. For
example, this is a reference variable Ros and it is not at this line.
It's not assigned to anything so you 'll be like Hey Kunal. What is
the value of this thing well. The value is by default going to be
null okay similarly, in integer arrays by the way we will talk about
how this thing works internally. Each object will be stored in
different parts of the memory.. objects are stored in heap