- Write Fibonacci series programming and explain logic
- how auto wiring works in spring
- write a program for dependency injection
- how security is implemented in your project.
- difference between filter and map in java streams.
- Explain about your current project.
- How to read the file and display total count of each word.
- How angular Makes calls to spring boot
- What is spring profile
- There is a list with emp objects with duplicate name, age attributes. How to retrieve uniques names.
- What Technologies used in last project.
- Abstract class and encapsulation.
- What is HashMap? how it works.
- what is inter thread communication
- what ArrayList ? extends object and ArrayList? super object means
- what is splice and slice
- difference between == and ===
- Write a Java 8 program to get the sum of all numbers present in a list?
- what FlatMap?
- write a prog ..how to sort emp obj in java8
- Given the list of employees, find the employee with name “R”.
- Angular Routing process
- Difference Between constructor vs ngOnInit in Angular
- how to find which datatype is created in JavaScript
- what is id in CSS
- how to create a singleton object
- what is static method, static block and static class
- what will happen if we add final to a method
- what is @path and path param, path variable
- what is multi catch block
- what is subquery and when we use it
- how to use service in angular
- difference between @Input and @Output in angular
- what is event emitter
- what is @beanpropertyrowmapper
- Handle cross horizon resource sharing-angular, how can u candle hash code, equal
- sql query, highest salary- department wise
- Routing in Angular
- import and export in ngModule
- what is ngModule
- directives and use of them in angular
- routes in angular
- what is children attribute in routes in angular
- Hibernate OneToMany and ManyToOneMapping example
- How to return a single user if userId passed or list of users if userId not passed in JPA
- Micro services communication
- Autorization and authentication process in current project
- String reverse program
- Spring JPA Example
- Factory design pattern
- Singleton Design pattern and real time usage and implementation
- How to prevent singleton object from clone?
- Synchronous and asynchronous requests, how to consume angular http request and services
- Springcloud config
- publishing a service in spring cloud
- diff b\w rest and soap
- what is the new in the current java version compared with previous versions?
- What is the lambda expression?
- What is a functional interface and it’s example?
- How many ways to create a thread and it’s life cycle?
- What are streams in java?
- What is the difference between a hashset and concurrenthashset?
- Difference between hashmap and concurrenthashmap
- What is LinkedHashMap
- What is a static method in java?
- How the static class locking works?
- what is a singleton design pattern and how do you create it?
- What are directives in angular?
- What are pipes in angular?
- How do components communicate with each other and data transfer among them?
- What is DDL and DML??
- What is the difference between Truncate and Delete?
- What is the difference between function and procedure?
- What is immutable class
- Method to find missing number in a Array list with value from 0-100. (number 7 and are missing)
- find the number of integer appear in a array list having duplicates
- Explain Quick sort
- Serialization
- what is executer framework and cachethreadpool
- How hashMap works internally
- Spring & Microservice
- What is microservice and its architecture
- How to handle situation if one of microservice fails
- What is API gateway
- What is client side load balancing
- Spring life cycle
- What is dependency Injection
- Annotation used in circuit breaker implementation
- Microservice design patterns
- fast iterate and safe iterate
- How you read file from angular
- difference between get and load in hibernate
- Spring JPA CRUD Repository
- jdbcTemplate methods
- difference between Observer and subscribe in angular
- Spring boot and hibernate integration steps
- How you read properties file from springboot
- sql query for one to many mapping.
- Functional interface.
- Design patterns used Realtime in your application.
- Java Multithreading – wait & notify, Obtaining lock.
- Static and Dynamic Overloading.
- Spring security its annotations.
- Java 1.8 features.
- Angular Observable subscribe and unsubscribe.
- what happens when we call a void method in a system.out.println()?
- What is Resource(Request) and Response in Restful services?
- how can I return custom data instead of JSON or XML content for a Rest response?
- what are stream(s) in java and few operations on them like comparison
- difference between comparable and comparator
- why Clonable is not implemented by Collection interface, reason?
- Components in angular
- What is the life cycle of components in angular
- Sharing data between components in Angular
- Type Script compilation process
- Angular life cycle
- what are gate in angular
- in how many ways I can sort my employee object with the given set of columns, explain?
- How to create schedulers in java
- How we implement batch import and export functionality in spring.
- How to maintain session in server side.
- Lifecycle process of angular
- How to reload header and footer menu based on particular left menu routing
- Box model in CSS
- Pseudo selector in CSS
- Difference between display block & display inline-block
- Difference between position absolute and position relative
- What is the internal implementation of HashMap?
- What is the algorithm/datastructure used to get an emlement from HashMap?
- How to make HashMap synchronized
- Difference between HashMap & concurrent hash map
- Authenticate client side in angular
- Time difference calculation in angular
- How to create Generic class in angular
- Difference between Post and PUT
- Stored Procedures
- Monolithic architecture and Microservice Architecture
- java 8 new features
- List of collections used
- How exceptions are handled
- Throw and Throws
- Final, Finally, Finalize
- Spring IOC
- Spring boot advantages
- JPA repository
- First level second level cache in hibernate
- Union vs Union all
- Spring security
- Spring transactions
- Custom directives
- Get and post in angular
- employee has id, name, salary. Find the list of employees where the employee name starts with “n” using java8?
- can you the same in ArrayList and array?
- Vulnerability checking process in the front end
- Have you worked on Cross Site Scripting?
- What are the challenged faced in Cross Site Scripting?
- Have you worked in Custom annotation creation in Java?
- if yes? Could you explain the implementation of custom annotation?
- Where thread class variables will get store in Memory?
- What are the different databases you worked?
- Did you face any query performance issues? how did you increase the performance of the query?
- What is index and query of it?
- What is the data structure used to create an index?
- How can you handle the errors in Spring Boot?
- Can you explain what are the dependencies required to create REST application in Spring Boot? what other classes needs to be created to perform CURD operations and it’s flow?
- How you worked on application security?
- angular life cycle hooks
- Explain insertion sort logic
- Write query to get 3rd highest salary of employee
- How to get the average value of integers using streams
- What are method references
- What are for lambda expressions introduced and what is the advantage
- explain proxy pattern
- how to find duplicate user object user {name, age}
- What is observable
- What is cluster index
- What is the deployment procedure of Micro services
- Explain service discovery pattern
- What is containerization
- how to import module and service in Angular
- Difference between monolithic and microservices architecture.
- Difference between Spring and Spring boot
- Explain about Spring boot starter
- Spring security
- @Springboot application
- Gates in angular
- Life cycle of angular hooks
- How to pass the data between components.
- Structural and behavioral directives
- Multi threading concepts
- Architecture of the current project where you are working
- Architecture of angular application
- Difference between soap and Rest
- Questions on GIT code checkout process
- Questions on Front end security concepts
- Code deployment procedure
- Load balancing concepts related to services
- REST and SOAP justification for usage
- Questions based on resume and projects explanation Why ? What ?
- How we used if we mention any technology
Category: interview
Wells Fargo Java Interview Questions
As part of job search I have attended interview in couple of companies Wells Fargo is one among them. Here I am placing the list of interview questions which I have faced in a conference round of interview. I hope this will definitely help someone who is attending on below mentioned skill set.
Java
Microservices
Spring Boot
Spring Cloud
Pivotal Cloud Foundry(PCF)
Questions:
- Could you please explain about your techstack and previous project?
- What is the output of below program?
- Is above program violating the rules of Overriding or not?
- When do you go for Interface and abstract class?
- From Java 8 on wards, we are able to implement methods in interface. Then what is the need of Abstract Class?
- What all java 8 concepts you aware?
- What is functional interface and how it is different from normal interface?
- Have you worked on multithreading?
- How can you communicate from one thread to another?
- How thread pool works?
- What all the classes and interfaces you worked in Collection framework?
- How HashMap works internally?
- In Java 7, there are few changes came in HashMap. Do you know what are those?
- If I have two keys(Key1=1, Key2=10) with same hashcode, What will happen when we try to put int HashMap?
- How TreeSet can store elements in order?
- I have custom objects of Student. What should I do to store them in ascending order in TreeMap? TreeMap will take care internally or do I need to write logic for sorting?
- When we use Comparable and Comparator?
- Have you worked on REST(REpresentational State Transfer) WS?
- How can you convert the JSON data into Java Object?
- How can you consume the endpoint from UI?
- What are different modules you worked in Spring framework?
- Can you explain me the steps how MVC works in Spring and Spring Boot?
- What are the advantages of using @RestController over @Controller?
- In normal Spring MVC, which you prefer to use either @RestController or @Controller? Why?
- What are the advantages of using Spring Boot?
- Do you know, how configuration will take care automatically in Spring Boot? Or Do you know, how autoconfiguration works in Spring Boot?
- When we declare web module in pom.xml, it download all the related dependencies(JAR’s). How it will identify, which jar is for which module?
- How can we run Spring Boot application?
- Which is the default server uses in Spring Boot? Does it require any configurations to add?
- If server is down, instead of showing default error message, we need to show Custom message. How will you do?
- Have you worked on feignClient?
- What are different tools you worked on Spring Cloud?
- Have you used inline DB?
- Do we need to provide any configuration details to use inline DB?
- Have you worked on WebLogic?
- What is Diego? what it will do?
- Can you explain about 12 factor apps?
- While pushing application into pivotal, which way you followed? direct or with manifest?
- We have different environments with different configurations like Development, Staging and Prod. How will you build and push application into different environments?
- I have a monolithic application, how can you push that into pivotal?
- My application data source configuration properties are placed in WebLogic server. How will you take care of those while pushing application into pivotal?
- Have you used any of User provided services?
Let’s start with Core Java:
class A{ private void method1(){ System.out.println("Inside A method"); } } class B extends A{ public void method1(){ System.out.println("Inside B method"); } } public class Test{ public static void main(String[] args){ A a = new B(); a.method1(); } }
Coming to WebServices, Spring, Spring Boot, Spring Cloud and Microservices:
Coming into PCF:
Codility Division Sequence Challenges in Java
This is one of the challenge I have completed in online coding test taking in Codility in Java.
Problem:
The actual problem given to me is, input N is given as random number, I need to find out each number is divisible with 2, 3 and 5. If input N is divisible by 2, 3 and 5, I need to print output as TWO, THREE and FIVE accordingly. If N is divisible by 2 and 3, then need to print output as TWOTHREE. The same will be applicable for others.
If the number is not divisible with any of 2, 3 and 5 then I need to print the number as it is in the output. The sample output would be look like,
Output:
1
TWO
THREE
TWO
FIVE
TWOTHREE
7
Solution:
Here I have placed the source code which will be compatible with Java technology and which meets to all conditions mentioned in above problem. As per my knowledge I have written this code. If anyone can solve in a better way, please share your source code in a comment.
public class DivisionSequence { static int input = 24; public static void main(String[] args) { for (int i = 1; i <= input; i++) { if (i % 2 == 0) { System.out.print("TWO"); if (i % 3 == 0) { System.out.print("THREE"); } if (i % 5 == 0) { System.out.print("FIVE"); } System.out.println(); continue; } if (i % 3 == 0) { System.out.print("THREE"); if (i % 2 == 0) { System.out.print("TWO"); } if (i % 5 == 0) { System.out.print("FIVE"); } System.out.println(); continue; } if (i % 5 == 0) { System.out.print("FIVE"); if (i % 2 == 0) { System.out.print("TWO"); } if (i % 3 == 0) { System.out.print("THREE"); } System.out.println(); continue; } else { System.out.println(i); } } } }
Actual Output:
1 TWO THREE TWO FIVE TWOTHREE 7 TWO THREE TWOFIVE 11 TWOTHREE 13 TWO THREEFIVE TWO 17 TWOTHREE 19 TWOFIVE THREE TWO 23 TWOTHREE
Note: I have taken number 24 as input, you can pass any number as input this program will work for that. All the very best… 🙂