Комментарии:
Sir Ji,
Fianl Variable ko, do baar assign kar sakte hai kya ..using overlaoding constructors......
yeh maine program likha hai......kya aap explain kar sakte hai ...vaise kyon behave kar raha hai.
class demo
{
final int I1;
final int I2 =200 ;
final static int I3= 300;//This value cannot be initialized in the constructor.
demo()
{
I1= 200;
}
demo(int a, int b)
{
I1 = 100;
int c = a*2;
int d = b*2;
System.out.println("The Addition Result is :" + (c+d));
// return (c+d);
}
}
public class final_keyword
{
public static void main(String[] args)
{
// System.out.println(demo.I1);
demo obj1 = new demo();
System.out.println(obj1.I1);
System.out.println(obj1.I2);
System.out.println(demo.I3);
demo obj2 = new demo(100,200);
System.out.println(obj2.I1);
}
}
Awesome, tq
Ответитьwhich software you use for coding
Ответитьbest video
ОтветитьI have one question when we define a object of the class the method in it will run automatically we should not need to call it with help of its object am I right?
ОтветитьThanks sir but i have a question
That
Jab mai final keywords child class me use kr rha hu to ye run kr rha hai aiasa q
thanks you sir
ОтветитьThank you for the video. i'm highly delighted.
ОтветитьCmd m coding Smjh ni aayi compile m finaldemo compile ho RHA h or run m finaltest... Kse??
Ответитьsir,final keyword ka use kiya hai
ОтветитьGood videos with example 😊😊😊
Ответитьincomplete tutorial
Ответитьsir ham to faaltu me college me itni mehngi fees de rahe he
ОтветитьCan a final class extends another class?
Ответитьbhai ka padhane ka mann nhi hai tone se yehi feel ho rha hai but still i respect ki padha toh rahe hai!! thanks sir kal exam hai mera wish me luck kyuki mera woh time aa gya hai jahan mjhe dawayi ki nahi dua ki zyada zaroorat hai
ОтветитьSir, jo program aap krwate ho final exam me whi mention kre de koi problem to nhi h
ОтветитьMarvelous explanation
ОтветитьThank you very very very very much sir for this video
ОтветитьThank you sir
ОтветитьVery very nice sir..
ОтветитьThank you so much Sir.... Superb explanation 🙌....Sir please make videos on AI and Machine learning......
Ответить