Morgan Stanley | Java spring boot microservice | Video Interview

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 24

  • @RealSlimShady-um6gf
    @RealSlimShady-um6gf ปีที่แล้ว +1

    Listening...

  • @mahi2082
    @mahi2082 ปีที่แล้ว +1

    Programing:
    import java.util.ArrayList;
    import java.util.List;
    public class PrintingNumberAlaphabetInOrderUsingThreads {
    public static void main(String[] args) {
    List input1 = new ArrayList();
    input1.add("A");
    input1.add("B");
    input1.add("C");
    input1.add("D");
    input1.add("E");
    List input2 = new ArrayList();
    input2.add("1");
    input2.add("2");
    input2.add("3");
    input2.add("4");
    input2.add("5");
    Operations operations = new Operations();
    AlphabeticThread alphabeticThread = new AlphabeticThread(operations,input1);
    Thread alphThread = new Thread(alphabeticThread);
    alphThread.start();
    NumberThread numberThread = new NumberThread(operations, input2);
    Thread numThread = new Thread(numberThread);
    numThread.start();
    }
    }
    class AlphabeticThread implements Runnable
    {
    Operations operations;
    List input1;
    AlphabeticThread(Operations operations, List input1)
    {
    this.operations = operations;
    this.input1 = input1;
    }
    @Override
    public void run() {
    synchronized (operations)
    {
    for(String s: input1) {
    operations.updateRecord(s);
    try {
    operations.wait();
    operations.notify();
    } catch (InterruptedException e) {
    e.printStackTrace();
    }
    }
    }
    }
    }
    class NumberThread implements Runnable
    {
    Operations operations;
    List input2;
    NumberThread(Operations operations, List input2)
    {
    this.operations = operations;
    this.input2 = input2;
    }
    @Override
    public void run() {
    synchronized (operations)
    {
    for(String s: input2) {
    operations.updateRecord(s);
    operations.notify();
    try {
    operations.wait();
    } catch (InterruptedException e) {
    e.printStackTrace();
    }
    }
    }
    }
    }
    class Operations
    {
    public void updateRecord(String output)
    {
    System.out.println(output);
    }
    }

  • @soulfulGirl_
    @soulfulGirl_ ปีที่แล้ว +2

    I think you told read has a lock in concurrent hashmap that's not true , we have lock only on write operations. 😊 , Great job for this video really appreciate.

  • @punyabikash3624
    @punyabikash3624 ปีที่แล้ว

    Thank you bro....Excellent its really helpful keep posting 👌👌

  • @abhaykumar-tk9xr
    @abhaykumar-tk9xr ปีที่แล้ว +1

    At the time of interview, how much experience do you have ?

  • @syedmohsin3371
    @syedmohsin3371 2 ปีที่แล้ว +2

    Hi..
    In cognizant what will be the package for Sr Software Engineer B2 position?

    • @RainakMajumder
      @RainakMajumder  2 ปีที่แล้ว +1

      that only HR can tell .. have you got the offer from CTS?? or offer in progress

  • @murahariraofam6473
    @murahariraofam6473 2 ปีที่แล้ว +1

    Were you talking about vert.x??? Did you add this in your resume??

  • @RandomRandomReels
    @RandomRandomReels 2 ปีที่แล้ว

    experience?

  • @sarojsahoo8763
    @sarojsahoo8763 ปีที่แล้ว

    Thread sleep wont be helpful here , because My Requirement is different here, should go for wait and notify only

  • @mahaperumal6899
    @mahaperumal6899 2 ปีที่แล้ว

    How many rounds in Morgan Stanley? I have less knowledge about DSA part so please suggest how to prepare the interview

  • @Manish-py3jc
    @Manish-py3jc 2 ปีที่แล้ว +1

    Selected or not??

  • @gulfamhassan4635
    @gulfamhassan4635 2 ปีที่แล้ว +2

    32:50 you need to use wait and notify method in this scenario

  • @akshaykohale3121
    @akshaykohale3121 2 ปีที่แล้ว +1

    Please share some coding questions

  • @shubhamjain3666
    @shubhamjain3666 2 ปีที่แล้ว

    Selected?

  • @mahi2082
    @mahi2082 ปีที่แล้ว

    LibraryMangament system works well using concurrent hash map if you have hash key on starting letter of book name...if multiple theards tries to read and update rack info at a time so it will give error. just think about hash value.