JPMorgan java interview experience round 2 || interview questions and answers, Microservices, 5 year

preview_player
Показать описание
Top 10 Tricky core java Interview questions top java interview questions,top java interview questions and answers,top interview questions and answers,top java interview questions for freshers,top 10 java interview questions,tricky java interview questions,tricky java interview questions for experienced,tricky java questions,java tricky interview questions,top 50 java interview questions,top 50 core java interview questions,java interview questions by durga sir,java interview questions for experienced,java interview questions for freshers,java interview questions and answers,java interview questions and answers edureka

#JavaInterviewQuestionsandAnswers​ #JavaInterviewQuestions​ #Intellipaat​ #JavaInterview​ #CoreJavaInterviewQuestions​ #JavaInterviewQuestionsandAnswersForExperienced​ #JavaTutorial​ #JavaProgramming​ #JavaTutorialForBeginners​

#java
#java8
#jpmorgan
#jpmc
#interviewquestions
#technical
#javainterview
Рекомендации по теме
Комментарии
Автор

Hi Mansi, I really appreciate your efforts. you recorded all yours interviews and shared with us. This will help everyone who are going for technical interview. Thank you Mansi :)

unnatigavhale
Автор

I must admit, this is one of the best interviews that I have come across. They really went deep diving into core concepts and gave every chance/hint to see if the candidate can catch on to that and give the answers. Usually, We don't often come across such interviewers who make you understand the concept and then give a chance to expand on that answer.

asishkumarsatapathy
Автор

Single responsibility principle ensures that any component or service class you create in your application (let's say BookTicketServiceImpl for example, will concentrate on services like book ticket, cancel ticket, check availability of ticket, find discounts on tickets, where as PaymentServiceImpl will concentrate on doing payment, refunds requests, report payment failure. One service should not provide multiple services in same class)

samsneera
Автор

Very brave, tested yourself and made us experience. thanks I've learnt a lot.

rajeshbhabu
Автор

Excellent Interview.Morgan People are great .Thxnks @Mansi for uploading.

democratcobra
Автор

After hearing this interview. I think I should take leave for one month and prepare for this interview. Thanks, a lot Manshi for sharing this.

gayatriyadav
Автор

Thanks for uploading the video, it give me really good insight on my weaker areas. You did a good job, and people who are commenting on other parts, of this video I think we all fumble even at silliest question sometimes in an interview, its the pressure. Thanks and keep uploading, ignore the naysayers. Have to say the questions were tricky.

alrightymedia
Автор

If it helps someone :

Round 2:

- Intro with main techstack architecture and about the project
- Core Java:
- Solid Principals
- In project how you implemented Solid prinicipals, eg like single object responsibility
- Create a singleton design pattern with all edge cases consider like multithreading etc
- should we make whole method synchronized or a subpart only
- class level locking or object level locking
- eager loading or lazy loading
- if we do serialization or deserialization then is it be singleton still ?
- how does java deserialize the object ?
- if we do not want to make something no serialize how can we do that? like transient

- if in a hashmap we pass the same hashedcode 1 and try to put 5 employees in hashmap what will be the size of hashmap
- how does java put anything in hashmap and how it will compare like equals()
- In java 8, theres a element arr, 1 - 8, and for each of the element we have to make multiple of 5 like 1->5, 2-> 10
so using map do it
- Using java 8, in a string how many times a char "i" is present find freq of it

public static void main(String[] args) {
String input = "This is a simple string with multiple i's";

long count = input.chars() // IntStream of characters
.filter(c -> c == 'i') // filter only 'i'
.count(); // count them

System.out.println("Frequency of 'i': " + count);
}
- so we have a parent class and a child class, theres a method in parent class one() and same in child class, so parent function is not returning any exception but child function is throwing an exception, what will happen if we compile and run this
So we have to declare throwing exception in parent class function as well otherwise it will not work and give compile time error, but if something is runtimeexception then its fine

class Parent {
void one()
// throws IOException, we have to add this otherwise it will give error
{ }
}

class Child extends Parent {
@Override
void one() throws FileNotFoundException { // invalid and give compile time error
}
}
- what are unchecked and checked exception

- If we have a class with two method overloading, take 1 as interger wrapper class as param and second one takes string
so if we call the function by passign null then what will happen

• null is a valid value for any reference type (like String, Integer, etc.).
• The compiler sees both test(Integer) and test(String) as equally good matches.
• But it can’t decide which one to pick — hence: “reference is ambiguous”.

- to solve this we can use define the type of arg passing
obj.test((String) null); // Output: String version
- What is aggregation and composition with code eg and how many type of relationship and which one is stronger in which case ?
- So theres a numerical input in form of string, "123", "101112", return if its a consecutive or not

public static boolean isConsecutive(String input) {
int len = input.length();

//so for each index we try to find if it equals to that consecutive or not
//taking till len/2 only because if some number is greater than len/2 then
//other second consecutve cant be inside the string

// Try different starting segment lengths
for (int i = 1; i <= len / 2; i++) {
String first = input.substring(0, i);
long num = Long.parseLong(first); // starting number
StringBuilder sequence = new StringBuilder(first);

//generate a new string with consecutive numbers
while (sequence.length() < len) {
num++;
sequence.append(num);
}

if {
return true;
}
}

return false;
}
- Why sql or nosql
- Queries in postgres
- If you want to exclude some configuration from autoconfiguration then how to do that
- what is spring profile, like in application properties, like dev or prod
- how do you monitor loads like grafana, if some resource is not properly closed
- how do you handle security in project, we do it as part of user management, like authentication, and jwt

shrad
Автор

interviewer asking question basically from geeks for geeks because he has taken example from it

manjunathks
Автор

Thanks for sharing. The candidate does not seem to have 5, not even close. I was surprised interviewers dragged the session for more than 30 mins. I have personally closed interviews within 25 mins.

ajayjadhav
Автор

I don't know why these JPMC interviewers are too rude, I have personally experienced it. It is easy to shoot a prepared set of questions to someone.

jinsmonka
Автор

Single Responsibility principal is not what you explain.
It is so simple, one class should have only one responsibility, don't do everything in one class validation, mapper, etc. they should be separate class.
That's all.

welcomesumit
Автор

i think the first question you should've asked for that consecutive numbers problem was how many digits should we consider while writing the logic. For example, for 123 I may consider as [1, 2, 3] this case is the consecutive case but i may also consider [12, 3] or [1, 23]. Since the input was a string I think we cannot make any assumptions on what are the digits. Other than that I think the interview was great, but it was lacking spring/spring boot questions. It was more to the Java side.

Thanks

helsinkired
Автор

This is really nice question for freshers also and give me soo much knowledge

mohitrathour
Автор

Hi Mansi, thanks a lot for uploading this video. It really helps me to crack my client interview with jp morgan. I got better ideas of questions being asked in Morgan. I appreciate your efforts, thanks a lot again!!!

manishshankar
Автор

Really a tough interview for 5 years experienced

goutamsardar
Автор

If I got 1 ruppee everytime she said basically, i wouldn't even have to give any job interviews, i'd be so rich.

yash
Автор

Tq very much mansi...
I'm feeling sad when I comparing with you that much of explanation I can't give . When I listening this record I have raised one question ....
Can I explain like this 😭😭😭😭...

srinivasrao-lwxk
Автор

I wander if Single responsibility principle has something to do with Singleton class? Correct me if I am wrong?

surbhi
Автор

Tq for uploading this kind of videos, please upload more videos 📹🙏😊☺

Ravikumar-gjqw
visit shbcf.ru