when a class implements two interfaces with the same default method, Java requires you to resolve the ambiguity by overriding the method in the implementing class. like this : public class DefaultTestInterface implements I1,I2{ public static void main(String[] args) { I2 t1 = new DefaultTestInterface(); t1.print(); } @Override public void print() { I2.super.print(); } } interface I1{ default void print() { System.out.println("I1 print() called"); } } interface I2{ default void print() { System.out.println("I2 print() called"); } }
Such basic questions are rarely asked. Loosely coupling microservices is much more different than what you spoke String is not a primitive datatype. Zuul is used with older Spring Boot and JDK 1.8 public interface InterfaceA { public String abc(); } public interface InterfaceB { public String abc(); } public class InterfaceABEg implements InterfaceA, InterfaceB { I want you to write how you can use super here }
@@Aniketjoshi9 refer to 3.30 answer. Is his answer correct? These mock interviews are programmatically not correct and there are no cross question asked. So does the interviewer knows what he is asking?
The interface question had the default methods in it. So if you are implementing both the interfaces and you want to access the method inside interface a, then you have to override that method inside your class. Otherwise java will give ambiguity error. The only way it will work is to override the method present in the interface.
bro as a fresher i know the answer of almost all questions except springboot can u suggest me some source for springboot im from mechanical final year students...
Java Techie is the best source. I mastered Springboot in 2 months following him. If you look at too many resources it will just confuse and slow you. Find 1 and put all your trust in it.
How do you define a string in java? The answer could be: Using primitive datatype string, and using the String Wrapper class which the guy explained how to define them.
I have an interview for Senior backend engineer using springboot , java, microservices at SAIC but the link you shared for java interview preparation is not working sir. Do you have any idea for SAIC ? I appreciate your feedback
For freshers, different companies have different criteria for selection. But the general idea is aptitude + programming language basics. In some companies, they ask DSA. The package generally ranges from 3-4 LPA.
Edo Edo cheppu swamy...... correct but way of answer is not correct......Abstraction in Java... If you are not allow to create a object or else the class which is not complete implementation means partially implementation called abstraction......
Abstraction is the key feature of any programming language. When we abstract the logic and just expose the input and output a lot of system complexity can be suppressed. Hope that made sense. 👍
For Live Java Interview Preparation! Register Now
www.cloudtechsolutions.in/courses/crack-java-backend-interview-6527dad5e4b0f21aa6921714
this guy perform pretty good
I really appreciate transparency.
you both are rocking man!!...Although, its scripted but its helping us to know various interview questions...keep it going..
Mir da...tomar national award paoa uchit...eto versatile character tmr...just god gifted...❤
when a class implements two interfaces with the same default method, Java requires you to resolve the ambiguity by overriding the method in the implementing class. like this : public class DefaultTestInterface implements I1,I2{
public static void main(String[] args) {
I2 t1 = new DefaultTestInterface();
t1.print();
}
@Override
public void print() {
I2.super.print();
}
}
interface I1{
default void print() {
System.out.println("I1 print() called");
}
}
interface I2{
default void print() {
System.out.println("I2 print() called");
}
}
Such basic questions are rarely asked.
Loosely coupling microservices is much more different than what you spoke
String is not a primitive datatype. Zuul is used with older Spring Boot and JDK 1.8
public interface InterfaceA {
public String abc();
}
public interface InterfaceB {
public String abc();
}
public class InterfaceABEg implements InterfaceA, InterfaceB {
I want you to write how you can use super here
}
It gives compile time error..
@@Aniketjoshi9 refer to 3.30 answer. Is his answer correct? These mock interviews are programmatically not correct and there are no cross question asked. So does the interviewer knows what he is asking?
The interface question had the default methods in it.
So if you are implementing both the interfaces and you want to access the method inside interface a, then you have to override that method inside your class. Otherwise java will give ambiguity error. The only way it will work is to override the method present in the interface.
Also the answer given by the candidate was not correct.
Thread goes waiting state by calling wait() or sleep () also
Yes!! Thanks Ram!!!
Str is sequence of characters to represent name address email id etc
I got placed in both Cognizant and Deloitte. Thank you.
bro as a fresher i know the answer of almost all questions except springboot can u suggest me some source for springboot im from mechanical final year students...
You can start watching videos of Abhilash Panigrahi or Durgesh KT ,Java Techie
Java Techie is the best source. I mastered Springboot in 2 months following him. If you look at too many resources it will just confuse and slow you. Find 1 and put all your trust in it.
Collections array list,hash map,linked list.
They are making interview harder than that this is like a entry level
How do you define a string in java? The answer could be:
Using primitive datatype string, and using the String Wrapper class which the guy explained how to define them.
String primitive datatype,???
String is not a primitive datatype. int, float and double are primitive data type. 👍
Thanks for providing right content
Anyone explain loose coupling in 2 microservices? 21:41
Look out for async comunication between microservices
Brother please upload more videos 👍
Very helpful video 🎉
Interface is contract.
I have an interview for Senior backend engineer using springboot , java, microservices at SAIC but the link you shared for java interview preparation is not working sir.
Do you have any idea for SAIC ?
I appreciate your feedback
default static and functional interfaces.
Literal and object i think
I have worked on some spring boot projects by myself with intermediate knowledge in java, so how can i apply anywhere as a fresher???
Good one
Nailled it bro
Amazing bro
For freshers what is the package for springboot if we are good at spring boot? and if we done a project on springboot is it a plus point ?
For freshers, different companies have different criteria for selection. But the general idea is aptitude + programming language basics. In some companies, they ask DSA. The package generally ranges from 3-4 LPA.
Is it fir freshers interview?? We can't expect this type of questions from 3 years experience guy??
That guy did it with no sweat 😳
Because it's not real interview.
Horizantal scalling explaination was wrong?
I think this is a Mock interview
Pool and heap
Edo Edo cheppu swamy...... correct but way of answer is not correct......Abstraction in Java... If you are not allow to create a object or else the class which is not complete implementation means partially implementation called abstraction......
Why abstraction is asked to everyone in every Java interview?
Abstraction is the key feature of any programming language. When we abstract the logic and just expose the input and output a lot of system complexity can be suppressed. Hope that made sense. 👍
@@cloudtech5260 definitely make sence 🔥
Did he use Chat GPT on the screen? o_o
correct
Interface is not clearly understood
What about salary
That is discussed with hr before the technical interview.
Please make videos on microservices
Yes sure. Will do!!
TQ
Waiting for him to say that he's not sure about any one of those questions 😭😳🙄
It is scripted man.
he was not able to answer correctly the question "how to deploy the application if you are scaling application horizontally"
@@aakashgupta7211😊😊
@@aakashgupta7211❤❤❤❤❤❤❤❤❤❤
nice
Salary kitna logo bhai 😂 from 3 iditos😂
Scripted but Wow l learnt a lot
They have posted 4 interview with same guy. They are foolingpeople
Hello,
These are mock interviews.
Baap-->beta-->betay ka beta inheritance
I1.super.print();
I2.super.print();
I dont get y are we calling interface method which has no body?
We will override it in the implementing class and call it right?
@@Raj-dy2cnInterviewer said interfaces are having default methods not abstract methods therefore he replied I1.super.print(); & I2.super.print();
@@JavaHub018 Yeah man I figured it out later, its one of those ur never gonna use scenarios