Accenture interview question

How do you detect and avoid memory leak in Java ? Can we interchange the @Controller and @Respository annotations in Rest Api ? Difference b/w Controller and RestController? Difference b/w Requestparam and PathVariable ? How can we make our RestApi secure ? What are the features of Java8? Program - Implementation of lambda function. Program - Given an arraylist of random values , provide an arraylist of unique values of original arraylist ? How can we run our test cases in CLI ? How can we ignore a particular testcase ? Explain Microservices Architecture ?