42 Static Variables Java Example |

preview_player
Показать описание
"Learn How To Design + Code A Complete App From Scratch To Playstore"
-~-~~-~~~-~~-~-

This Java Tutorial video shows a simple example using static keyword in java to count the number of objects created inside the main method, each time, a new object is being created, the static count variable is increased, it also demonstrates how static blocks are executed once before any object is created to assign values to static variables

OUR WEBSITE

OUR SOCIAL LINKS
Follow us on
Рекомендации по теме
Комментарии
Автор

you are the best java teacher, thank you!

alexey
Автор

College is college can't expect everything. Class lecture is just blahh..blahh.. but here at   #slidenerd    every single video is worth watching . Thank you   #vivz   #slidenerd  

punicharana
Автор

237 FREE Java slides!!!
These slides teach you everything you need to get started with Java programming. I will be adding a PART 3 in addition to the two parts that will cover more complex topics. I was so excited with these that I couldn't wait to upload it ASAP!

slidenerd
Автор

i have watched many java tutorials but you are supper best, the way you teaching is extraordinary . pleas can you do tutorial on arrays and java swing thanks.

oriyon
Автор

Sir it is worthfull to watch your's videos ...

khajakadar
Автор

Excellent me understanding  static block
thanks

hasanmehmud
Автор

thanks its very nice lesson, please where the variables static its stored in the memory static variable and static method . thanks

orontesnew
Автор

Great video

I was also looking at your android tutorial on adapters
.
You can add few videos on using Custom adapters(BASE ADAPTER) for dialogs to set images  from drawable etc .... some simple things which will be helpful for newbies :) .... much appreciate u add more videos on like overall concept of dialogs and different types of using them ..
.
thanks :)

devrathdev
Автор

Can you do a tutorial on polymorphism? I've seen some other vids online, but I want to better understand how it works and what happens with the objects when they are created. Thanks!!

rogerguruleii
Автор

the following code is valid or not sir

public static void main(sting args[])
{
n=10;
for(i=0;i<=10;i++)
{
A a=new A();
a.n;
}
}
Class A
{
static n=100;
out.println(n);
n++
}

my question is ..Is it print the value from 100 to 109 i dont want to create a 10 object to get 10 value which is automatically increamented..

khajakadar
Автор

is it right that even if don't initialize static variable
... it will initilized to zero

tusharpawar