what you wrote on board test() is zero argumented but while creating test object u passed argument in the code i.e test t1= new test(10); but in while the run in computer you wrote test(int i); kindly check before writing on board whether code on computer and code on board are both same or not thank you
MAN IS A STATUE OF MISTAKE, ANY ONE CAN DO THE MISTAKE, here sir done one mistake, who know basic of java can understand this problem.. While learning the codding its most important thing is to understand the problem/situation it doesn't means You teaching sir .......
As per the return type only we return the value like if method return type is void--that method not return any thing. int--return any integer value//OR// this.i; String- return string value// OR// this.s; Test/-- return that class object ;; 2 way we return the object 1:: Test t= new Test() return t; or 2:: return new Test();
Best Teacher on this Planet.
As usual...flawless explanation!!!
Implementing Our Own Immutable Class - 09:00-10:10
10:40 great
How can we achieve immutable if the class contains Map
Hello Srikanth.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
God of Java
why int i is not declared as final? can anyone suggest
Hello Friend.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
what you wrote on board test() is zero argumented but while creating test object u passed argument in the code i.e
test t1= new test(10);
but in while the run in computer you wrote test(int i);
kindly check before writing on board whether code on computer and code on board are both same or not
thank you
Hello Mahesh.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
MAN IS A STATUE OF MISTAKE, ANY ONE CAN DO THE MISTAKE,
here sir done one mistake,
who know basic of java can understand this problem..
While learning the codding its most important thing is to understand the problem/situation
it doesn't means You teaching sir .......
Sir new object created but you says return new test(100) but you dont say how the object name is assigned
Hello Saravana.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
As per the return type only we return the value
like
if method return type is void--that method not return any thing.
int--return any integer value//OR// this.i;
String- return string value// OR// this.s;
Test/-- return that class object ;;
2 way we return the object
1:: Test t= new Test()
return t;
or
2:: return new Test();
see this video in high speed
sir showing error ...can't run...🤐
Hello Jishan.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
This is nothing but saying how to use String class method in our class...
Hello Santosh.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28
This is very low level example. Suppose there is one Test2 contained in Test class then how it will be immutable. Cloning concept is not explained.
Hello Shikhar.
Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28