Live | Technical Interview | Accolite Digital | Java Developer | Java | Spring | Spring Boot | DSA

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Join this channel to get access to perks:
    / @prashantsharmaofficial
    Please like, share, and subscribe!!

Komentáře • 59

  • @ashusingh265
    @ashusingh265 Před rokem +2

    Someone is sitting beside this guy and helping....watch the video completely and you 'll get to know

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před rokem +1

      haha thanks for the insights. But, unfortunately I was all alone/single while giving this interview. But, thanks for watching the video completely.

  • @vanshikamalhotra6941
    @vanshikamalhotra6941 Před 2 lety +5

    I really liked the questions she asked , it really forced ne to brainstorm
    Also , not sure why she was saying that the complexity of first program will be n2 .

  • @gyvsr
    @gyvsr Před 2 lety +1

    1)Nested loop case only it will be : O(n2),
    but O(n)+O(n) - O(n) only.
    2) As per my knowledge, things if you want to execute for certain number of times, either loop or recursive.

  • @SandeepSingh-un6mf
    @SandeepSingh-un6mf Před 2 měsíci

    Using range we can print counting this method comes in Java stream api

  • @ManishTiwari-or8zt
    @ManishTiwari-or8zt Před 2 lety +4

    immutable should have only getter not setter method

  • @aniketpatil2053
    @aniketpatil2053 Před 2 lety +1

    7:22 bro you have already mentioned wrapper classes are immutable.. for only mutable class you need to return clone of object from getter

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety

      Yeah, if I have said that the custom object was immutable then no need to get the clone of that object.

  • @tanujarora4906
    @tanujarora4906 Před rokem +1

    Big O notations padhne chayiye madam ko, sahi complexity batayi fir bhi confuse krdia😢

  • @lalitlms9304
    @lalitlms9304 Před 2 lety +1

    I had also given interview for Java Developer(2 yrs experience). Two rounds were done and informed by HR that I'm selected and there will be 1 last 3rd technical round but still waiting for invite. It's been more than 10 days and HR told me that they are conducting now final round interview on the basis of notice period. I'm not sure whether I'll receive invite or not. Only 1 month is remaining for me.

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety +1

      These kinds of experiences are very common these days. I would say if HRs are not responding in these notice period days then what can you expect after you join. So, whatever is happening maybe it's for your own good brother.

    • @husenfakir7244
      @husenfakir7244 Před rokem

      Pl share question asked in interview

  • @girishchaudhari4668
    @girishchaudhari4668 Před 2 lety +2

    Please let us know for what experience level you are giving an interview.

  • @maheshdhavalshankh5974
    @maheshdhavalshankh5974 Před 2 lety +5

    Program to find second largest number with single loop could be like this:
    private static int findSecondLargestNumber(int[] a, int length) {
    if(length < 2) {
    return -1;
    }
    int largest = 0;
    int secondLargest = 0;
    if(a[0] > a[1]) {
    largest = a[0];
    secondLargest = a[1];
    } else {
    largest = a[1];
    secondLargest = a[0];
    }

    for (int i = 2; i < length; i++) {
    if(a[i] > secondLargest && a[i] < largest) {
    secondLargest = a[i];
    } else if(a[i] > largest) {
    secondLargest = largest;
    largest = a[i];
    }
    }
    return secondLargest;
    }

  • @hitendrasuryavanshi9170
    @hitendrasuryavanshi9170 Před 2 lety +4

    You can do this just using for loop; see here:
    int[]arr={1,6,3,7,5};
    int max1=arr[0],max2=0;
    for(int i=0;i< arr.length;i++)
    {
    if(arr[i]>max1)
    {
    max2=max1;
    max1=arr[i];
    }
    }
    System.out.println("Largest-1:"+max1);
    System.out.println("Largest-2:"+max2);

    • @revathikumar7419
      @revathikumar7419 Před rokem

      Above code wont work if the second largest number comes last or after the first largest number in the array. Ex for this array of numbers 2,1,5,3

  • @veerendrakumarmeka3181
    @veerendrakumarmeka3181 Před 2 lety +3

    Bro can u explain me why you used main(null) in printing 1 to 10 numbers

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety

      Because String array can be initialized with null. We can use a black array too.

    • @veerendrakumarmeka3181
      @veerendrakumarmeka3181 Před 2 lety +1

      @@PrashantSharmaOfficial bro we can either use streams also na?? For printing

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety

      @@veerendrakumarmeka3181 Yup that can also work but here you first need another collection from 1 to n.

  • @Ed-gd5ec
    @Ed-gd5ec Před 2 lety

    bro what are the things to be learnt in order to be called as JAVA DEVELOPER?
    (Currently I only know basics of Java, and currently learning DSA. What should I learn next (after DSA) in order to get a Product Based Companies

    • @tejusmom
      @tejusmom Před rokem

      Solid principals, design pattern basics

    • @javacodes7586
      @javacodes7586 Před rokem

      Get intouch with springboot and spring mvc

  • @ShrutiLifestyle
    @ShrutiLifestyle Před rokem

    If I used to answer like this in interview like not sure and thinking much and then answering they surely do not select me😢 I don't know why

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před rokem

      Maybe you haven't given enough interviews. Experience always teach you everything, good or bad.

    • @ShrutiLifestyle
      @ShrutiLifestyle Před rokem

      @@PrashantSharmaOfficial I am 3.5 yrs experienced professional and given more than 50 interviews I think, Still in some of the interviews I encounter new question where my confidence gets low

  • @niranjanverma6516
    @niranjanverma6516 Před 2 lety +1

    she was confused about time complexity

  • @nagasrinivas2289
    @nagasrinivas2289 Před 4 měsíci

    funny interview..

  • @kshitijofthejune
    @kshitijofthejune Před rokem +1

    Yaar mam galt bol ri.. About complexity

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před rokem

      Yep, I know but that happens a lot in interviews.

    • @vijayreddy3422
      @vijayreddy3422 Před 11 měsíci

      @@PrashantSharmaOfficial bro i got oncampus offer last year during start of my 4th year im 2023 passout but still they havent onboarded us do you any idea why it is getting delayed im getting worried🥲

  • @abhinavpandey3356
    @abhinavpandey3356 Před 2 lety +1

    Is it real? What CTC does it provides.

  • @rohitsai806
    @rohitsai806 Před 2 lety +3

    For how many years experience is this interview for.. How many rounds were there... And what's the status

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety +2

      Experience- 6+ years
      Rounds- 2
      Status- Selected

    • @rohitsai806
      @rohitsai806 Před 2 lety

      @@PrashantSharmaOfficial what was the 2nd round about... When did this interview happen?

  • @theunusual4566
    @theunusual4566 Před rokem

    2nd Largest Single Loop : ---
    public static void find2ndLargest() {
    int[] arr = {1,2,3,4,5,67,-1,121,1050,8};
    int largest = arr[0];
    int secLar = arr[0];

    for(int i=1; i= largest )
    {
    secLar = largest;
    largest = arr[i];
    }
    else {
    if(arr[i]>secLar) {
    secLar = arr[i];
    }
    }

    }
    System.out.println(largest+","+secLar);
    }

  • @cehpurushothaman6165
    @cehpurushothaman6165 Před rokem

    Hi this is fresher real interview?

  • @cehpurushothaman6165
    @cehpurushothaman6165 Před rokem

    you are selected accolite?

  • @shivakrishna7293
    @shivakrishna7293 Před 2 lety +1

    Got selected?

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety

      Fortunately, yes!!

    • @shivakrishna7293
      @shivakrishna7293 Před 2 lety

      @@PrashantSharmaOfficial okay nice
      I have a question
      I have 6 months of experience in Java spring boot
      I know all the answers to these questions in the video
      So what is the correct time to switch to product based company

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Před 2 lety

      So, for product based companies you need more than just Spring Boot. You need good DSA and then Java or Spring Boot. But, there is never a good time to switch, whenever you feel like switching, do it...

    • @shivakrishna7293
      @shivakrishna7293 Před 2 lety

      @@PrashantSharmaOfficialyeah I know DSA but I have to practice problems n okay thank you

    • @vaasmontenegro6835
      @vaasmontenegro6835 Před 2 lety +1

      @@shivakrishna7293 Best time to switch is after getting a hike in your current company

  • @meemee3611
    @meemee3611 Před 2 lety +3

    Year of experience?

  • @Chaloobolo
    @Chaloobolo Před 2 lety +2

    Ye immutable sabse puchte mujhe laga mujhse bhi puchenge are sala mere se puchta hai nitepad kholo suru hojaao code likhna😂😂😂😂😂😂😂😂😂😂🤣🤣lmaao