Paytm Interview Experience | Set 11 (For 2 Years Experienced)

Round 1:

  • Brief intro

  • Discussion about Projects and work ex.

  • Why are you using aerospike?

  • Given a matrix sorted only row-wise, search a number in it. (Complexity O(log(m+n))).

Round 2:

  • Brief intro

  • Discussion about project

  • Why are you using aerospike?

  • Design a hashmap.

  • Relationship between equals() and hashcode().

  • Find a loop in linked list

  • Given a string, print it in reverse order word by word. E.g. “Name is XYZ” -> “XYZ is Name”. First without any java function, then with built in java functions.

  • Given a file, read it line by line, and print occurrences of each word in a line.

  • Difference between StringBuilder and StringBuffer.

  • Design a singleton class. Then make it thread safe. Then improve its performance by double checked locking.

  • What is volatile.

Round 3:

Round 4:

  • Brief intro

  • Discussion about project

  • What is aerospike XDR?

  • How will you make a list unmodifiable? Eg List list = {1,2,3,4,5}. Now list cannot add or remove any element.

  • Write code for an enum. How will you get ordinality for an enum? How can your enum A extends some class B?

  • Difference between List<?> and List<Object>

  • List<?> list1 = new ArrayList<?>();

  • List<Object> list2 = new ArrayList<Object>();

  • List<String> list3 = new ArrayList<String>();

List1 = list3;

List1 = (List<String>)list2;

What will be its output?

 

 

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above


Write your Interview Experience or mail it to contribute@geeksforgeeks.org



My Personal Notes arrow_drop_up