Java Microservice interview experience with Morgan Stanley | 6 years
HTML-код
- Опубликовано: 28 сен 2024
- Java Microservice interview experience Morgan Stanley | 6 years
This video contains Java Microservice interview experience Morgan Stanley | 6 years
For mock interviews join the telegram channel:-
t.me/mockinter...
Java complete Reference book
amzn.to/36A2jT3
Kindly subscribe channel for all updates and Learn how to pass your Java Developer interview
Core Java 2+ Interview Questions:- • java developer intervi...
Hexaware Java Interview:- • Hexaware Java Intervie...
Cognizant Java Interview:- • Cognizant java intervi...
Tech Mahindra Java Interview:- • Tech Mahindra 5+ years...
Accenture Java Interview:- • Accenture Core Java In...
Mphasis Interview :- • Mphasis interview ques...
Amdocs Metrops software test:- • Video
Birlasoft Interview:- • Realtime interview que...
HCL Interview Questions:- • HCL Java developer int...
Yash teachnology Interview:- • Solution architect int...
IBM Java developer hacker rank test:- • Video
Wipro Java developer Interview :- • Wipro Java Developer I...
Capgemini Java developer Interview :- • Capgemini Java Develop...
Apache Wicket Interview Questions:- • Apache Wicket Intervie...
City Bank Codility Test:- • Video
Interviewer is very great, He is proving the weakness of candidates in very polite way. Set of question is brilliant, it's not like general market question like what is difference between overloading and overriding.
why these long answers for small questions? 😃 would praise the interviewer for his listening skill n patience .
That's a trick to consume as much time as possible, so to avoid further difficult questions which may impact the whole interview.
😂@@digvijay1228
Print 1,A,2,B
You have to use wait and notify within 2 threads
How to Prepare for Multithreading, and Microservices as I have not apportunity to work on it. And I want to go it that segment
Correct
# This is not that efficient we can improve this but it works for context switching
package com.mohit.multithreading;
public class NumberAphabet {
public static void main(String[] args) {
ThreadWorkAlphabetNumber numberThread= new ThreadWorkAlphabetNumber("num");
ThreadWorkAlphabetNumber alhaThread = new ThreadWorkAlphabetNumber("alp");
Thread t1= new Thread(numberThread);
Thread t2= new Thread(alhaThread);
t1.start();
t2.start();
}
}
class ThreadWorkAlphabetNumber implements Runnable{
static Object lock=new Object();
static int counter=1;
static int numVal=1;
static int asciiVal=65;
String resultType;
public ThreadWorkAlphabetNumber(String resultType) {
this.resultType=resultType;
}
@Override
public void run() {
while(counter
That SQL question , u have to use count(emp) and group by emp in the query , with count having greater thn 1
my observation there is no sync of question and answers
I also feel same
😂
a transcript of this entire thing would've been great
Will provide you
Spring has webflux for reactive programming ..interviewee is giving wrong reason for moving to vertx
New features of 1.8 concurrenthashmap. Both don't know token expiration logic
Depending on request accept header we can return response in XML/json.
Produces and consumes with json too can be used
He asked you on JWT token validity and what did you answer?
22:32
Great interview. Can you upload videos without the background buzzing noise please?
Sure
6:56
Where container came in concurrent hashmap??
That should be segment.
I think it should be hash buckets.
What do you use to record the interviews?
obs studio
Do you provide mock interview service ? Please let me know
This is a mock interview
How much years of experience this interview?
Was it allowed by your interviewer to record?
No company or interviewer will allow you to record.
PHK
Selected ?
Select ayyara?
Yes
Bore kar diya dono ne
Why in garbage collector dominant to the Hashamp but weak hashmap garbage collector not be dominated
If the object specified as key is have no reference, if it is associated with the hashmap map then it is not eligible for garbage colleciton.
It will be eligible for garbage collector if the same object associated with the weak hashmap
@@nagendersripada7798 what is new things in ur comments Boss same things u also commenting my Question why this kind facilities sun people only provided by weak hashmap not hashmap
My Q why same type of weak hashmap feature not provided by in a Hashmap see the example in a Hashmap
Garbage collector unable to destroy but in weak hashmap it will distroy the unreferenced object
Hashmap example
class HashMapDemo
{
public static void main(String args[])throws Exception
{
HashMap m = new HashMap();
Demo d = new Demo();
// puts an entry into HashMap
m.put(d," Hi ");
System.out.println(m);
d = null;
// garbage collector is called
System.gc();
//thread sleeps for 4 sec
Thread.sleep(4000);
System.out.println(m);
}
}
class Demo
{
public String toString()
{
return "demo";
}
// finalize method
public void finalize()
{
System.out.println("Finalize method is called");
}
}
Output:
{demo=Hi} {demo=Hi}
Weak hashmap
class WeakHashMapDemo
{
public static void main(String args[])throws Exception
{
WeakHashMap m = new WeakHashMap();
Demo d = new Demo();
// puts an entry into WeakHashMap
m.put(d," Hi ");
System.out.println(m);
d = null;
// garbage collector is called
System.gc();
// thread sleeps for 4 sec
Thread.sleep(4000); .
System.out.println(m);
}
}
class Demo
{
public String toString()
{
return "demo";
}
// finalize method
public void finalize()
{
System.out.println("finalize method is called");
}
}
Output:
{demo = Hi}
finalize method is called
{ }
Answering any question like blah blah... without content won't help.
No need to answer in hurry burry. Just explain your understanding of the concept.
sql Query for finding duplicates
select empId, count(empId)
group by empId where count(empId) > 1
Where or having???
@@Pawan76457 both work. Use explain plan to check which is more time consuming
@@Pawan76457 having , something like this ::::: SELECT id,count(*) FROM students group by id having count(*) > 1;
9pp
With all my experience and exposure so far, I could easily say that, the interviewee is far better than interviewer. The interviewer himself is lot confused about his questions... such as how do you check duplicate column(????) insertion or updation. Or in Endpoint question, he himself doesn't have clarity what is he asking. Such kind of interviews throw tantrums in interviewee's minds. So one need to lucky enough to get an able interviewer too...😊
Ok will check with him
no dude the question is valid one has to use group by clause prety common qs for junior devs
Yeah for ur understanding about this interview, u really need a lot of luck to get job in good companies.
He must have passed this technical interview
level.
But he didn't
Not all answers are right