Sure, here are the questions I could extract from the given text:
Question: Take a list of number, 2, 5, 10, some random number. Find out the second largest number into this list.
Answer:
Java
List<Integer> numbers = Arrays.asList(1, 3, 8, 23, 28, 1, 2);
int num = numbers.stream().sorted(Comparator.reverseOrder()).skip(1).findFirst().orElse(null);
//Other ways
int num3 = numbers.stream().sorted(Comparator.reverseOrder())
.limit(2)
.reduce((first, second)->second)
.orElse(null);
System.out.println("Num3:"+ num3);
Please Learn more about Limit, Skip, reduce in following blog.
Question: Two list list1: {“Apple”, “Bannana”} and list2= {“Bannana”, “Graphs”} So, what I want is the common string between these two lists. Banana
Answer:
Same string? Yeah, string. Take a… Add a list as a banana and cat. Banana and? Do anything else, cat.Okay.
- What are the services you use on AWS?
- What are the things you develop on Lambda?
- What is AWS Lambda? Why you choose Lambda for this requirement?
- What are the different ways Lambda can be triggered?
- What are the configurations required to configure the API gateway to cause the Lambda?
- What is the cold start of Lambda? Cold start state of Lambda? Warm start state of Lambda?
- What is the AWS Lambda layer?
- What are different type of queues are there in SQS?
- There is a delay time we can configure in SQS. Do you know what is that one?
- Did you connect multiple database from Silver Spring Boot application?
- Find out the second largest number into this list.
- Can you do with the Java string?
- String is for lazy implementation. Do you know why?
- Did you implement cache in Spring Boot?
- How do you implement the cache?
- How to make a class as a singleton class?
- Is singleton thread safe?
- How do we make a thread safe singleton?
- What is serial version ID? Why we use?