Data Structures and Algorithms (DSA) Full Series- ruclips.net/p/PLQU_Gzt0f8XSsX1Sxzpj0IiNpEXxd9FcF&si=iCYR28kiDKtBMaao 👉Fill Out The Form To Schedule Your Offline Mock: forms.gle/TMdk8sFZbiThWabK7 🔰𝐉𝐨𝐢𝐧 𝐨𝐮𝐫 𝐟𝐫𝐞𝐞 𝐝𝐞𝐦𝐨 𝐜𝐥𝐚𝐬𝐬- bit.ly/jbkgshub7
Awesome! As a fresher, that too from a non-IT background, Pooja has answered this mock interview with tremendous effect. I was really inspired by her. Thank you Kiran sir for motivating your students in such a manner.
Kiran sir's motivating nature which gives turning point to no. of student's career , the maximum number of students are from small cities, I'm one of them , Thanks Kiran sir and JBK💌
Very nice interview sir this will definitely help me and many more students. You are my role model and I follow you because there is so much to learn from you. Keep guiding Sir Thank you so much Sir 💝
21:30 No, if class A has a method m1 that is declared as final, it means that the method cannot be overridden by any subclass, including class B. Therefore, class B cannot access or modify the implementation of the m1 method from class A. When a method is declared as final, it effectively prevents any subclass from altering its behavior, ensuring that the method's functionality remains consistent across all subclasses. However, class B can still inherit other non-final methods and variables from class A, but it cannot override the final method m1.
Great knowledge but seems like Chatur from 3 idiots 26:51 But Kiran sir made the interview look so easy by giving the answers and boosting confidence of the candidate
Great sir ❤ .But at the end the code was more efficient when i start from 0 and i+=5 because the time complexity will less than i++ code because condition will be checked for every value of i ,I think jump 5 at once is good and efficient or what? If you can provide any suggestions then it would be helpful for me.
36:09 It is my answer for ur question is this correct public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter num: "); int n = sc.nextInt(); for (int i = 0; i < n; i++) { System.out.println(5 * i); } sc.close(); } }
Sir, I have recently joined a product based company based on Java. They gave me training of c# for 8 days. And assigned me a single handy project. I am the only person on this project, my senior team is not as supportive as expected. This is disappointing me. Please guide 😔
Ok let answer my question that what is difference bw abstraction and encapsulation in detail with real life example Edit: Don't answer me from chatgpt due to I search it on this question alot but I can't find the satisfied answer
in c++ you can use virtual functions to allow the overriding and not define the implementation of the method in the parent class , while in case of java there is no concept of virtual methods , though you can have abstract methods in abstract classes , but java do not allow the multiple inheritance by taking any chances of error(in case concrete methods are there having implementation), as by using interfaces all the methods are guaranteed to be pure virtual so if their implementation is written in the child class only (by overriding) then there is no problem of ambiguity that's why it can be done using interfaces.
i am sorry fo that sir you said sir we can initialize the final variable with the help of class constructor but it is not possible we can not initialize the final variable by using constructor if we will try this tyhan we will be getting compile time error. you can check it in you video timing at 17:36 if you want than i can tell how to initialize the final variable in another way. but no worry sir you are great teacher i respect you, but sometime anyone can mistake because we are human being na sir that's why but no worry. Again i am saying sorry for that sir.
package com.javabykiran.Final; public class A { final B b; // NO ERROR as we have. //done the initialisation in constructor final int x; A(){ b =new B(); x=28; } } class B { }
you are a great teacher and my humble request to you kiran sir please provide us free course you will be blessed by god i know nothing is free in this world but if you are giving half knowledge so you also can provide us full videos
I think all these trick questions should not be a parameter to hire students, maybe there should be a scenario and inteviewer should ask how the inteviewee would approach or maybe focus on how efficient code the interviewee writes, or focus on oops concepts and few imoprtance on trick questions like static and what will the value print all those.
sir There are one doubt at 14:17 you say If class is Final then automatically the method of that class is become final we can't override it... But it's totally wrong because Each method in a final class can be individually declared as final or not. it is not a requirement for all methods in a final class to be final. please justify this doubt..
Faculty must explain diamond problem. Any reason to tell her to close other projects to start with a new project. Min/Max is not using Streams API which is just 1 line instead of what she has coded. All these variables can be instance variables only. You cannot declare local variable with public final int xx = 10; inside a method? Also declaring them inside method for local variables public final int xx = 10; static int yy = 20; final static int zz = 1111; will give compile exceptions. final int aa; will compile but that is a dead variable. if used then you will get compile exception as it needs to be initialized new A().mx() will work instead of compile error at mx().
Data Structures and Algorithms (DSA) Full Series- ruclips.net/p/PLQU_Gzt0f8XSsX1Sxzpj0IiNpEXxd9FcF&si=iCYR28kiDKtBMaao
👉Fill Out The Form To Schedule Your Offline Mock: forms.gle/TMdk8sFZbiThWabK7
🔰𝐉𝐨𝐢𝐧 𝐨𝐮𝐫 𝐟𝐫𝐞𝐞 𝐝𝐞𝐦𝐨 𝐜𝐥𝐚𝐬𝐬- bit.ly/jbkgshub7
Awesome! As a fresher, that too from a non-IT background, Pooja has answered this mock interview with tremendous effect. I was really inspired by her. Thank you Kiran sir for motivating your students in such a manner.
Kiran sir's motivating nature which gives turning point to no. of student's career , the maximum number of students are from small cities, I'm one of them , Thanks Kiran sir and JBK💌
Well said
Very nice interview sir this will definitely help me and many more students. You are my role model and I follow you because there is so much to learn from you. Keep guiding Sir Thank you so much Sir 💝
It's my pleasure
23:05 the girl is correct 💯 ,it will print 2222 because both class is different, i don't know why sir say no .🙂
21:30
No, if class A has a method m1 that is declared as final, it means that the method cannot be overridden by any subclass, including class B. Therefore, class B cannot access or modify the implementation of the m1 method from class A. When a method is declared as final, it effectively prevents any subclass from altering its behavior, ensuring that the method's functionality remains consistent across all subclasses. However, class B can still inherit other non-final methods and variables from class A, but it cannot override the final method m1.
method m1 of class A is not final so Class B can override n
Great knowledge but seems like Chatur from 3 idiots 26:51
But Kiran sir made the interview look so easy by giving the answers and boosting confidence of the candidate
this student is much aware of all topics
Great sir ❤ .But at the end the code was more efficient when i start from 0 and i+=5 because the time complexity will less than i++ code because condition will be checked for every value of i ,I think jump 5 at once is good and efficient or what? If you can provide any suggestions then it would be helpful for me.
36:11
I think according to question she need to put scanner then
for(int i=1;i
36:09
It is my answer for ur question is this correct
public class A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter num: ");
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
System.out.println(5 * i);
}
sc.close();
}
}
Question 😮 you didn’t ask her
Why variables called attributes and functions called methods in class?
Why?
is there difference between attributes and methods?
Polymorphism
Kiran you are the best interviewer, you ask questions and if they are not sure about the answer you educate them. Rare and nice quality.
Anybody please mention the topics to learn in java as a fresher including API's and frameworks..
Java FullStack Developer Roadmap: ruclips.net/video/dvBeUvwUZHQ/видео.html
🔰𝐉𝐨𝐢𝐧 𝐦𝐲 𝐟𝐫𝐞𝐞 𝐝𝐞𝐦𝐨 𝐜𝐥𝐚𝐬𝐬 𝐚𝐧𝐝 𝐮𝐧𝐥𝐨𝐜𝐤 𝐭𝐡𝐞 𝐦𝐚𝐠𝐢𝐜 𝐨𝐟 𝐜𝐨𝐝𝐢𝐧𝐠! 🚀
bit.ly/jbkgshub7
Sir, I have recently joined a product based company based on Java. They gave me training of c# for 8 days. And assigned me a single handy project. I am the only person on this project, my senior team is not as supportive as expected. This is disappointing me. Please guide 😔
Ok let answer my question that what is difference bw abstraction and encapsulation in detail with real life example
Edit: Don't answer me from chatgpt due to I search it on this question alot but I can't find the satisfied answer
No offence, but I cannot understand half the words you're saying. Very frustrating.
Iam also learn java in pankaj sir academy in bangalore..
What if I answer in Interview when I. Don't know the ans?
why multiple inheritance allowed in c++ using class but not in java using class
in c++ you can use virtual functions to allow the overriding and not define the implementation of the method in the parent class , while in case of java there is no concept of virtual methods , though you can have abstract methods in abstract classes , but java do not allow the multiple inheritance by taking any chances of error(in case concrete methods are there having implementation), as by using interfaces all the methods are guaranteed to be pure virtual so if their implementation is written in the child class only (by overriding) then there is no problem of ambiguity that's why it can be done using interfaces.
Superrr🎉🎉🎉 I got some 4 topics information from ur video
I saw in print statement doesn't have semicolon how it will compile? Sop(1111)
Please keep these movk these are useful
Sir I am 2018 pass out civil branch,can I change my career towards it
i am sorry fo that sir
you said sir we can initialize the final variable with the help of class constructor but it is not possible
we can not initialize the final variable by using constructor if we will try this tyhan we will be getting compile time error. you can check it in you video timing at 17:36
if you want than i can tell how to initialize the final variable in another way.
but no worry sir you are great teacher i respect you,
but sometime anyone can mistake because we are human being na sir that's why but no worry.
Again i am saying sorry for that sir.
Sir am i right or wrong sir please tell me
package com.javabykiran.Final;
public class A {
final B b; // NO ERROR as we have. //done the initialisation in constructor
final int x;
A(){
b =new B();
x=28;
}
}
class B {
}
no need to worry we all are human beings.
Tried to watch it but l don't understand this guy at all
at 22:48 , she is correct, didn't get any explanation
you are a great teacher and my humble request to you kiran sir please provide us free course you will be blessed by god i know nothing is free in this world but if you are giving half knowledge so you also can provide us full videos
Sure I will
You said interviewer will screw you up to this girl
sir why wont you provide the same things for python???????
Super & very helpful questions
There is no global in Java is called instance
Sir I'm from nonit please suggest me can i get a job in IT
I think all these trick questions should not be a parameter to hire students, maybe there should be a scenario and inteviewer should ask how the inteviewee would approach or maybe focus on how efficient code the interviewee writes, or focus on oops concepts and few imoprtance on trick questions like static and what will the value print all those.
Someone else is writing the code🧐 33:50
To hum kya kra
Did she get good placement ? I have one vacancy i would like to hire her we can offer upto 15ctc.
make the same for Web development
Sir can the resume be of more than 1 pages?
As i saw her resume is of 2 pages, that's why I'm asking
Resume should be in one page only
her knoweldge is good ...
It's a great 👍 experience..by seeing this ❤ thankyou...make more series of java mocks
Thank you, I will
please, we need interview for python developer
Where is your coaching
In Pune For More Details Contact Us on 9075 777 123
5 to 10 years experience ke liye mock interview start kijye sir
Link for part 2 pin in comments section
check once
sir i waiting second part please upload
Today at 6 pm
Thank you sir 👍 for most important questions of core java .
You are most welcome
Great 👍
Photo mein alag asli mein alag 😢
amazing sir
Hacker Hai bhai Hacker😂
sir There are one doubt at 14:17 you say If class is Final then automatically the method of that class is become final we can't override it...
But it's totally wrong because Each method in a final class can be individually declared as final or not. it is not a requirement for all methods in a final class to be final.
please justify this doubt..
If class is final then we cannot extend it
And if method is final we cannot override it
If variable is final we cannot reinitialise it.
Voice is very slow
Thank you for your feedback. We will take it into consideration and strive to improve in the future.😊
21:31 we can't call m1 method cuz main method is static and m1 method is non static method
So for that reason he has created object of the class, so calling should be possible, unless it is not in other package.
Nice 👌👌👌
Very helpful.. I was pausing in between and trying to answer and helped me in quick revision.. Thanx
Most welcome!
Great interview
23:09 why the calling is not possible?
@@CHALLENGESTORY if the 3 classes are in same package then we can access them but if they are in different packages then we get compile error
38:06 😂
It really helpful !!
Amazing
a very useful real time java interview process i have ever seen tq so much TKA
All the best
I will give 6.5 / 10 to this girl.
bhai jis tarah se vo logic implement kar rahi hai i think 9/10 hona chahiye
@@AnadiHirpara❤
@@AnadiHirpara😅
@@AnadiHirpara correct
Don't expect freshers to learn in 1 hour. Over the period of time they learn with exposure. Their basics must be strong
Great......❤
Very informative video
Faculty must explain diamond problem. Any reason to tell her to close other projects to start with a new project.
Min/Max is not using Streams API which is just 1 line instead of what she has coded.
All these variables can be instance variables only. You cannot declare local variable with public final int xx = 10; inside a method? Also declaring them inside method for
local variables
public final int xx = 10;
static int yy = 20;
final static int zz = 1111; will give compile exceptions.
final int aa; will compile but that is a dead variable. if used then you will get compile exception as it needs to be initialized
new A().mx() will work instead of compile error at mx().
Her knowledge was mind blowing 😮
Waiting for part 2 please upload fast ❤❤❤❤
today at 6 pm