1.24 Asked Question - amresh087/Question GitHub Wiki

  • In Docker how can debug every layer?

  • In Docker one service runs in a container and one another VM Linux(another system ) then how can open connection? (concept expose port)

  • What is Multi Map suppose state, city, sector (for example multi-key contain a list of object map ) create a program which is used minimum object?

  • In Rest API for getting call how can use pagination?

  • In Rest API for search same URL if pass id then search by id and if pass name then searches by name then how can implement in single URL (concept functional programming )?

  • In the java 8 list contain the Employee(id, name) object then how can convert in the map?

  • In Kafka suppose on topic publish 1 lac messages by mistake so how can restrict to consume do not read the incorrect message? Another word how can read msg base on date and time?

  • What is construct between equal() and hashcode() ? Answer

  • In OAuth2 wt are used for encryption?

  • In Rest API forget operation how can handle more PARAM like 20 params?

  • Wt is a functional interface benefit?

  • java 8 functional programming? Answer

  • Stream vs pallelStream diff based on the thread?

  • one static synchronized method and one non-static synchronized method. Both methods needs access by one thread then it is possible or no?

  • wt is the drawback of spring boot?

  • In microservice, how can managed transaction?

  • Wt is the diff between microservice and SOA service? Answer

  • What is the java 8 feature?

  • In Kafka wt is the topic flag limit indicator?

  • write a program for suppose if you have a huge amount of data in the file the how can read data and transfer it in the database without throwing outofmemoryException?

  • suppose in the map you are putting key as objects then you need to override hashcode and equal method. Then the below code.

    class A
     {
         B b,
        //getter method
     }
    

    if you are getting B object from getter of A and you are changing the property of B. Then in the map based on this key bucket position is rotated or not? If yes then how can restrict it. Answer hint made immutable class

  • How can be worked TreeMap internally? Answer

  • Why ArrayList is fast to retrieve the data>? Answer hint Arraylist in implemented Random interface that is marker interface

  • How can manage the distributed transaction in microservice? Answer hint 2 phase commit, saga, 3 phase commite,