Hello Aishwarya. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello Manish. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello RajKumar. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Hello Sheikh. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Ratan sir, because of you i am able to learn JAVA. Hats off the way you teach , you are the best trainer i have ever seen in my IT career of 12 years :-)
Hello Ravikumar, Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: CoreJava by Ratan goo.gl/7oC3T3 Advanced Java jdbc by Ratan goo.gl/QymTy4 Advjava tutorials - JSP by Ratan goo.gl/hG2hUC Adv java servlets tutorial by ratan goo.gl/a9LYoQ
Hello Manish. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
awesome Ratan sir you are too good...I did Engineering but never could understand Java but by listening to your videos i am able to understand......Thanks.. awesome
Good morning sir i have a dought that in static variables we can access by using class file bt u have sad that to call m1 method u have created an object ...plz clarify my dought
Hello Krishna. For all Core java videos, Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
Thnx Sr... Smiled at 3. 36.... Well explanation.. No words.. Actually me from Kashmir very thankful to u Sr.. As due to prevailing conditions in Kashmir we don't get knowledge from colleges.. Due to hartal etc.. Thnx Sr for such excellent teaching service
Hello Lone Humi. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
I have seen tens of video tutorials about Java on internet,but this is so far the best tutorial ever ! thank you mr Ratan,God Bless You and thanks to Durgasoft for providing these videos to us,
Hello Ahmid libya. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: CoreJava by Ratan goo.gl/7oC3T3 Advanced Java jdbc by Ratan goo.gl/QymTy4 Advjava tutorials - JSP by Ratan goo.gl/hG2hUC Adv java servlets tutorial by ratan goo.gl/a9LYoQ
excellent class...thanks.... I am the salesforce developer. we need core java basics to develop applications in my platform. these videos are very helpful to me
Hello Chaitanya. Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: goo.gl/7oC3T3
Wonderful faculties(c/o ameerpet),clear explanation in simple way,i think because of this strong foundation majority telugu ppl are rocking in IT industry all over the world :)
Hello Sateesh. Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos. You can view all other Core Java Videos by Ratan in the following link: CoreJava by Ratan goo.gl/7oC3T3 Advanced Java jdbc by Ratan goo.gl/QymTy4 Advjava tutorials - JSP by Ratan goo.gl/hG2hUC Adv java servlets tutorial by ratan goo.gl/a9LYoQ
of course...by using class name we can access static variables in instance method.. ex: class abc { static int a=20; public void g1() { System.out.println(abc.a); } }
Excellent Tutorial, Thanks a lot lot & Lots of Sir. I have a query. Suppose we declare a Local Variable and do some calculation and give and output which is again stored in a variable inside the method. Now i have to use this Variable value in some other methods say main Method or other method, How can i do this thing. Thanks.
Hi Pardeep kumar we will discuss the form and meaning of writing Java classes and Javadoc. .... In fact, I have put these methods in the Prompt class; also, one calls the other so ... a simply-namedmethod (with the parameters needed to do the calculation) ... Besides its single parameter, thismethod declares two local variables ...
you can call the method using some other method and then return the required variable's value to the caller method. So now you can store the returned value in some other variable and then use it. Hope this helps :)
sir when I am declaring variables with static keyword and calling it in the static method by using an object it is printing without any error. can you tell me the reason behind it?
I have one question. If the Static variable that we want to access reside on the same source file under same class, then it seems like we don't even need to use class-name.variable to call the variable. We can just directly call them be it static or instance area. But we need to use class name if we are using a different class inside or another source file. Then only you need to use class-name.static-variable.
Non Heap Means method area According to my understanding....... that means mainly we have three areas (1)method area (2)heap area (3)stack area................ In this Method area can access static variable,,static method,,non static method. In heap area non static variable and object creation is performed . in Stack area local Variable is accessed. thank u bro :-)
Hi Sir, i am able to acess static variable in below example without using class name in instance method ...please comment class Variable { static int a=40; static int b=50; public static void main(String[] args) { // TODO Auto-generated method stub Variable v=new Variable(); System.out.println(Variable.a); System.out.println(Variable.b); v.m1(); } void m1(){ System.out.println(a); System.out.println(b); } }
3 point in instance variable-- memory is allocated when object is created .. my question is-- if i do not want create object. how the memory allocated for the instance variable.
You cannot allocate memory to instance variable if you don't create an object. Reason is .. When you are accessing Instance variable inside static method you are creating an object and with that object you are accessing instance variable , So object creation is necessary. And when you are accessing Instance Variable inside Instance method you need to call that user defined instance method through main method so to call instance method through main method you again need to create an Object to access the instance method. So Object creation is necessary in every case according to my understanding. :)
Hello Ratan sir, it was a nice video with good examples.. When i try to execute the same examples , i observed that 1. without mentioning the class name also we can call the static variables in static main method.. public class Java_Static_Variables { static int a=10; static int b=5; public static void main(String[] args) { System.out.println(a); System.out.println(b); } Output:: 10 5 2. without mentioning the class name also we can call the static variables in instance user defined method.. public class Java_Static_Variables { static int a=10; static int b=5; public static void main(String[] args) { System.out.println(a); System.out.println(b); Java_Static_Variables x=new Java_Static_Variables(); x.m1(); } //Instance method public void m1() { System.out.println(a); System.out.println(b); } Output:: 10 5 10 5 please confirm and correct me if any mistakes.
No words sir ur teaching.....
💗💗
Best again🥰🥰🥰
Thank you so much !!!!
Sir u are awesome....way of teaching is very nice...
Hello Aishwarya.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
@@DurgaSoftwareSolutions thanku so much for your kindness...
very good teaching and understandable
You are great
Hello Manish.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
kummeshavu ga Explanation, excellent explanation.
Very nice explanation sir..
Hello RajKumar.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Bahut sandar padate ho.
Love u sir
Jus wow
Hello Sheikh.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
thanks a lot.....
supbbbb tutorial ...
Hi Ankita. Thank you very much for your feedback
in static ..
can we not call the m1 method using class name ???like
test.m1();
plz tell me
Ratan Sir, You are excellent. Thanks for your help.
Hi Jovita. Thank you very much for your feedback
very nice videos
Ratan sir, because of you i am able to learn JAVA. Hats off the way you teach , you are the best trainer i have ever seen in my IT career of 12 years :-)
Hello Ravikumar,
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
CoreJava by Ratan
goo.gl/7oC3T3
Advanced Java jdbc by Ratan
goo.gl/QymTy4
Advjava tutorials - JSP by Ratan
goo.gl/hG2hUC
Adv java servlets tutorial by ratan
goo.gl/a9LYoQ
Me tooo
Don't believe in theoriotical, believe in practical------------ i'm impressed
Hello Manish.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
that is amazing way of teaching. Ratan Sir you are Seriously Object class(most imp) of DurgaSoft.
Simple to learn. Thank you Ratan. Eg of MADE IN INDIA product Durgasoft.
awesome Ratan sir you are too good...I did Engineering but never could understand Java but by listening to your videos i am able to understand......Thanks.. awesome
Good morning sir i have a dought that in static variables we can access by using class file bt u have sad that to call m1 method u have created an object ...plz clarify my dought
Hello Sirisha.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
If method is instance method then compulsory you have to create object of class on the ref you have to call instance method
ratan sir is best teacher!
Awesum... It clears my doubt. Thanks.
Hi Ratan sir how to I get your private videos access.. Please help me
Superb explanation ratan sir I want all ratan videos of core java so how??
Hello Krishna. For all Core java videos,
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
just type in youtube search as " core java basics by ratan "...you can see all videos in one playlists( in order)
Yaa but some videos are private yarrr
Thnx Sr... Smiled at 3. 36....
Well explanation.. No words.. Actually me from Kashmir very thankful to u Sr.. As due to prevailing conditions in Kashmir we don't get knowledge from colleges.. Due to hartal etc.. Thnx Sr for such excellent teaching service
Hello Lone Humi.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
Thank you so much Ratan Sir u made the concept easy 😍😍😍❤️. The way you teach is 🔥🔥🔥.
one time is tills come to run time.... Thanks Ratan
I have seen tens of video tutorials about Java on internet,but this is so far the best tutorial ever ! thank you mr Ratan,God Bless You and thanks to Durgasoft for providing these videos to us,
Thank you sir...
hats off your are fantastic excellent explanation
Outstanding..! You have built my foundation ,,,Thanks
huge amount of information thank you
Hello Ahmid libya.
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
CoreJava by Ratan
goo.gl/7oC3T3
Advanced Java jdbc by Ratan
goo.gl/QymTy4
Advjava tutorials - JSP by Ratan
goo.gl/hG2hUC
Adv java servlets tutorial by ratan
goo.gl/a9LYoQ
excellent class...thanks.... I am the salesforce developer. we need core java basics to develop applications in my platform. these videos are very helpful to me
Hello Chaitanya.
Thanks for your valuable feedback. It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
goo.gl/7oC3T3
very nice video Brother, from Bangladesh
Wonderful faculties(c/o ameerpet),clear explanation in simple way,i think because of this strong foundation majority telugu ppl are rocking in IT industry all over the world :)
sir your teaching style is fabulous sir, in never seen my carrier. thanks sir once again
Hello Sateesh.
Thanks for your valuable feedback.It will boost us to do new things. Please subscribe to get updates about new videos.
You can view all other Core Java Videos by Ratan in the following link:
CoreJava by Ratan
goo.gl/7oC3T3
Advanced Java jdbc by Ratan
goo.gl/QymTy4
Advjava tutorials - JSP by Ratan
goo.gl/hG2hUC
Adv java servlets tutorial by ratan
goo.gl/a9LYoQ
we are able to acess static variable in instance method
of course...by using class name we can access static variables in instance method..
ex: class abc
{
static int a=20;
public void g1()
{
System.out.println(abc.a);
}
}
in-depth explanation of concepts, Thank you Ratan Sir !
Phenomenal explaining, good sir. Thank you.
Ratan sir thank you for your best effort to make java easy. I wish you best of of everything. You know how to teach.
fully details. nice
What if we declared the variable in local but want to access the variable in static method??
Hello Rohit.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
Awesome Tutorial..Great man
Love From Pakistan
thank you sir
Hlo ratan sir
Exception handling not cmplt video pls send all core video ur video vry gud
Hi Nidhinikus Tq...we kept some videos private.. Plz contact our team durgasoftonlinetraining@gmail.com they will assist
if i declare a variable inside main...then how can i call it outside method?plz
+Jithu S you can't
tks
I understood easily
plz upload exception handling in java
Hi Divya. Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627
Excellent Tutorial, Thanks a lot lot & Lots of Sir.
I have a query. Suppose we declare a Local Variable and do some calculation and give and output which is again stored in a variable inside the method. Now i have to use this Variable value in some other methods say main Method or other method, How can i do this thing.
Thanks.
Hi Pardeep kumar we will discuss the form and meaning of writing Java classes and Javadoc. .... In fact, I have put these methods in the Prompt class; also, one calls the other so ... a simply-namedmethod (with the parameters needed to do the calculation) ... Besides its single parameter, thismethod declares two local variables ...
Sir not getting you. Can u please explain. Thanks
you can call the method using some other method and then return the required variable's value to the caller method.
So now you can store the returned value in some other variable and then use it.
Hope this helps :)
supeb !!!
sir when I am declaring variables with static keyword and calling it in the static method by using an object it is printing without any error. can you tell me the reason behind it?
Hello Sai Prudhvi.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627,7207212427/28
Call with class name
We call static variable either class name or object reference but recommended to call class name always
Iam always follow s u
amazing explination
I have one question. If the Static variable that we want to access reside on the same source file under same class, then it seems like we don't even need to use class-name.variable to call the variable. We can just directly call them be it static or instance area. But we need to use class name if we are using a different class inside or another source file. Then only you need to use class-name.static-variable.
god bless u
what is non heap memory
Non Heap Means method area According to my understanding.......
that means mainly we have three areas (1)method area (2)heap area (3)stack area................
In this Method area can access static variable,,static method,,non static method.
In heap area non static variable and object creation is performed .
in Stack area local Variable is accessed.
thank u bro :-)
in static ..
can we not call the m1 method using class name ???like
test.m1();
sir .. class type lo Test t variable example ga cheparu kada adi eaa datatype ki vastundisir either int or charecter
phani phani user defined data type
sir, your teaching is very smart but still need to know, why we are using different type of variable. kindly advice me
I could not understand test t thing, how t. a or t. b gives the value of a and b respectively?
supeeeeeeeer,,.
please do upload oops concept videos ratan sir..
please open the sub branch of durgasoft in Bangalore sir.
Hi Sir,
i am able to acess static variable in below example without using class name in instance method ...please comment
class Variable {
static int a=40;
static int b=50;
public static void main(String[] args) {
// TODO Auto-generated method stub
Variable v=new Variable();
System.out.println(Variable.a);
System.out.println(Variable.b);
v.m1();
}
void m1(){
System.out.println(a);
System.out.println(b);
}
}
what meaning of non heap memory storage in static variable. so what is called.... non heap
3 point in instance variable--
memory is allocated when object is created ..
my question is-- if i do not want create object. how the memory allocated for the instance variable.
You cannot allocate memory to instance variable if you don't create an object.
Reason is ..
When you are accessing Instance variable inside static method you are creating an object and with that object you are accessing instance variable , So object creation is necessary.
And when you are accessing Instance Variable inside Instance method you need to call that user defined instance method through main method so to call instance method through main method you again need to create an Object to access the instance method.
So Object creation is necessary in every case according to my understanding. :)
Thank you
Ur god to me
static variables are stored in heap memory only but in permgen which is a section of heap memory. Its not non heap as you said.
Hello Ratan sir, it was a nice video with good examples..
When i try to execute the same examples , i observed that
1. without mentioning the class name also we can call the static variables in static main method..
public class Java_Static_Variables {
static int a=10;
static int b=5;
public static void main(String[] args) {
System.out.println(a);
System.out.println(b);
}
Output::
10
5
2. without mentioning the class name also we can call the static variables in instance user defined method..
public class Java_Static_Variables {
static int a=10;
static int b=5;
public static void main(String[] args) {
System.out.println(a);
System.out.println(b);
Java_Static_Variables x=new Java_Static_Variables();
x.m1();
}
//Instance method
public void m1()
{
System.out.println(a);
System.out.println(b);
}
Output::
10
5
10
5
please confirm and correct me if any mistakes.