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

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • Join this channel to get access to perks:
    / @prashantsharmaofficial
    Please like, share, and subscribe!!

КОМЕНТАРІ • 59

  • @ashusingh265
    @ashusingh265 Рік тому +2

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

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Рік тому +1

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

  • @SandeepSingh-un6mf
    @SandeepSingh-un6mf 3 місяці тому

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

  • @tanujarora4906
    @tanujarora4906 Рік тому +1

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

  • @vanshikamalhotra6941
    @vanshikamalhotra6941 2 роки тому +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 2 роки тому +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.

  • @ManishTiwari-or8zt
    @ManishTiwari-or8zt 2 роки тому +4

    immutable should have only getter not setter method

  • @aniketpatil2053
    @aniketpatil2053 2 роки тому +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  2 роки тому

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

  • @girishchaudhari4668
    @girishchaudhari4668 2 роки тому +2

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

  • @lalitlms9304
    @lalitlms9304 2 роки тому +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  2 роки тому +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 Рік тому

      Pl share question asked in interview

  • @ShrutiLifestyle
    @ShrutiLifestyle Рік тому

    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  Рік тому

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

    • @ShrutiLifestyle
      @ShrutiLifestyle Рік тому

      @@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

  • @Ed-gd5ec
    @Ed-gd5ec 2 роки тому

    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 Рік тому

      Solid principals, design pattern basics

    • @javacodes7586
      @javacodes7586 Рік тому

      Get intouch with springboot and spring mvc

  • @veerendrakumarmeka3181
    @veerendrakumarmeka3181 2 роки тому +3

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

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  2 роки тому

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

    • @veerendrakumarmeka3181
      @veerendrakumarmeka3181 2 роки тому +1

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

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  2 роки тому

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

  • @maheshdhavalshankh5974
    @maheshdhavalshankh5974 2 роки тому +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;
    }

  • @niranjanverma6516
    @niranjanverma6516 2 роки тому +1

    she was confused about time complexity

  • @abhinavpandey3356
    @abhinavpandey3356 2 роки тому +1

    Is it real? What CTC does it provides.

  • @kshitijofthejune
    @kshitijofthejune Рік тому +1

    Yaar mam galt bol ri.. About complexity

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  Рік тому

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

    • @vijayreddy3422
      @vijayreddy3422 Рік тому

      @@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🥲

  • @rohitsai806
    @rohitsai806 2 роки тому +3

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

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  2 роки тому +2

      Experience- 6+ years
      Rounds- 2
      Status- Selected

    • @rohitsai806
      @rohitsai806 2 роки тому

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

  • @hitendrasuryavanshi9170
    @hitendrasuryavanshi9170 2 роки тому +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 Рік тому

      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

  • @cehpurushothaman6165
    @cehpurushothaman6165 Рік тому

    Hi this is fresher real interview?

  • @shivakrishna7293
    @shivakrishna7293 2 роки тому +1

    Got selected?

    • @PrashantSharmaOfficial
      @PrashantSharmaOfficial  2 роки тому

      Fortunately, yes!!

    • @shivakrishna7293
      @shivakrishna7293 2 роки тому

      @@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  2 роки тому

      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 2 роки тому

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

    • @vaasmontenegro6835
      @vaasmontenegro6835 2 роки тому +1

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

  • @cehpurushothaman6165
    @cehpurushothaman6165 Рік тому

    you are selected accolite?

  • @nagasrinivas2289
    @nagasrinivas2289 5 місяців тому

    funny interview..

  • @meemee3611
    @meemee3611 2 роки тому +3

    Year of experience?

  • @theunusual4566
    @theunusual4566 Рік тому

    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);
    }

  • @Chaloobolo
    @Chaloobolo 2 роки тому +2

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