Nium | L1 Senior Java Position | India | April 2022
Anonymous User
2581

Not sure about the offer status yet.!

Interview scheduled over Virtual Over Teams for one hour.

Questions -

  1. Introduction about self and work exp.

  2. What are best pratices which a Java Developer should know ? - Explained in details.

  3. What are SOLID principles ? Explained him with examples

  4. Asks to share screen and open notepad.
    Problem : Given thousands of strings in arraylist. String is of format firstname+space+lastname
    Example string - "Raj Kumar"
    How do you sort list for firstname ?
    Answered with Collections.sort which could give natural sort.

Interviewer - Adding more complexity
What if i had to sort based on lastname ?
I was thinking on other solution and explaining how to do it.
Interviewer says read comparable vs comparator

  1. Explain what is transactional management ?
    I explained him how its done in plain jdbc vs springboot annotations.

  2. If we have a transaction which save data into multiple tables in particular method how do we handle transactional management(rollback) in case if a business scenario has not been met while saving data ?
    Throw custom exception and have it rolled back using @Transactional and rollbackFor field.

  3. Explain advantages of microservices ?
    Explained him the details of it

Overall it took about 23 minutes odd. I'm not sure if I will hear back from them.
Also I wonder why do i take such interviews where random questions are asked.

Comments (1)