Not sure about the offer status yet.!
Interview scheduled over Virtual Over Teams for one hour.
Questions -
Introduction about self and work exp.
What are best pratices which a Java Developer should know ? - Explained in details.
What are SOLID principles ? Explained him with examples
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
Explain what is transactional management ?
I explained him how its done in plain jdbc vs springboot annotations.
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.
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.