0% found this document useful (0 votes)
91 views

Interview Prep For Java + Angular

Uploaded by

rewowaw779
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Interview Prep For Java + Angular

Uploaded by

rewowaw779
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Contents

JOB Description and Skills Required (Java Developer).................................................................................. 2


Summary of job/function........................................................................................................................ 2
Job description for Java Backend Developer...........................................................................................2
Role Description.......................................................................................................................................3
QUESTIONS for Java Backend (incl. Spring, Spring boot, Hibernate, etc. to prepare)...................................3
Spring & SpringBoot................................................................................................................................. 3
Java & Java 8 :........................................................................................................................................... 5
Hibernate..................................................................................................................................................6
MySQL...................................................................................................................................................... 6
Maven – Building Tool.............................................................................................................................. 7
Angular..................................................................................................................................................... 7
Other General Questions Regarding Development.................................................................................. 8
QA interview questions asked...................................................................................................................... 8
Topics to cover for Java/Spring/hibernate.................................................................................................... 9
JOB Description and Skills Required (Java Developer)
Summary of job/function
Strong Java Backend developer with Core Java + Spring + SpringBoot + Hibernate (a must) +
JPA/EMS + some level of application monitoring using Splunk etc.
SpringBoot/Hibernate/Messaging system coding and experience are essential. For Core Java,
collections, hashmaps, exceptional handling, OOPS, unit testing code, etc. essential. The project
aims to create a portal (UI by angular developers) where users will receive notifications of
Corporate action events via email (based on what they've chosen as the configuration in the UI
screen). It involves new coding as well as using other app databases to fetch info via messaging
and services, hence Hibernate and Springboot, etc are essential. (domain = Corporate Actions, if
you wish to google)

Job description for Java Backend Developer

Mandatory Certifications
# Java: OCP Oracle Certified Professional (OCP) Java SE 11 Developer (1Z0-819) OR
# Java: Oracle Certified Associate Java SE 8 Programmer (1Z0-808 & 1Z0-809 both) OR
# Spring/SpringBoot: Spring Certified Professional (VMWARE) OR
# Angular certification level 2 (from angulartraining.com)

Note: Certifications can be taken after joining the company. Upon clearing, the cost is reimbursed.

Important skill elements


# Java/Java 8: Collections, Filter, Map, Reduce java collection using streams, lambda function,
Java Oops concepts, exception handling, unit testing, hashmaps
# Spring framework
# Spring Boot - Initialize Spring Boot, JPA repositories, RestConroller vs Controller, Ribbon, Load
Balancer, Spring Batch
# Hibernate Session/SessionFactory/Object States/Query Cache/Criteria/Relationships between
entities.
# JPA / EMS: Enterprise messaging system and JPA (Java Persistence API)
Other useful skills for advantage
# Patterns - Circuit Breaking (Hystrix), Service discovery(Eureka), Externalize Configs(Spring
Cloud) - [these are as "good to have" but not must]
# Oracle/SQL – Queries and Joins at a decent level of knowledge
# Micro service concepts /RESTFul API creation - Domain-Driven Development approach
# Others: Maven / App monitoring via Splunk etc. (if done and good to have but not essential)

Role Description
# Developer role with implementation of Java Backend technologies and tools with required
unit testing
# Work on requirements and user stories in close coordination with other developers and
client's full-time employees
# New coding and maintenance as per the needs of the project
# Good interpersonal and communication skills
# Strong and proven experience with Java programming language and related technologies
implementation

QUESTIONS for Java Backend (incl. Spring, Spring boot, Hibernate, etc.
to prepare)
Spring & SpringBoot

# Difference between Spring & Spring Boot.


# Write or explain how to implement Rest API.
# Difference between @Autowire & @Inject.
# put vs post HTTP method
# Difference between @Controller & @RestController and when to use each?
# How to disable Autoconfiguration in Spring boot.
# Exception handling in RestAPI/Spring boot.
# What is an Actuator and its endpoints?
# How to create a spring boot project
# Annotation used in Springboot
# How to return JSON object as output which annotation should we use?
#how can we convert JSON objects into Java objects in the controller class?
# Use of yml files, what do they consist of
# load balancing used on production server?
# How do you find out if any issue occurs in running applications
# Example using log report
# Ribbon Load Balancer
# What is the use of an actuator in spring boot and how it works?
# transaction annotation in spring.
# How can we consume REST API?
# What is a Rest Template?
# how to handle transactions when child and parent classes are there.
# @proxy annotation in spring
# @requestparam vs @param
# Do we need @requestbody annotation to save the object in DB?
# @component vs @configuration
# @qualifier annotation
# What are @pathvariable and @requestparameter annotation?
# Project architecture
# Types of restful APIs developed
# Different HTTP status codes?
#Different types of HTTP status methods?
# Questions on JMS, PUB-SUB model, queue vs topic, scenario-based, and config-based for queue
connection.
#Spring annotations, postConstruct, Configuration, Component.
#Design patterns used.
#Situational questions on innovations provided.
#Http methods and architecture of the project.
#JPA and mybatis configuration-related questions.
#Java 8 features used, questions on the functional interface, lambda, optional.
#Stream coding questions.
# Java coding problem for finding the count of each character in a provided String.
# Exception handling in spring boot.
# Types of auto wiring.
# Environment-related configuration practices used in the project.
# Serialization.
# Which module was used in the spring
# Explain how the AOP module implies
# explain security module imply
# Why we need REST API
# structure of creation REST API
# How do we know the service method get which request
# How do we know which request calls which method and how in restapi
# Can we create a custom response in the controller class, how?
# Difference between SpringMvc and Spring Boot?
# What are the new futures in spring boot over spring?
# What is stater dependency and what are the state dependencies you know?
# How to deploy war files in Tomcat?
# How to specify the port number in the Spring Boot project?
# What are the different methods of restful web service?
# How we do the validations?
# How to Validate Parent and Child class?
# How do you connect DB?
# How much percentage you covered code coverage?
# What dependency do you use for code coverage?
# How to use beans across the application?
# What is an actuator?
# Scenario based question for @Qualifier annotation usage.
# How exceptions were handled in application.
# Which type of request does not have any impact on the database?
# Explain how can we insert data in the database for an employee using rest.
# Which error code can be used if requested data is not found in the database?

Additional Java and Spring Questions:


# What is a generalization in Java?
# Consider we have a library, librarian, and student. Considering the OOP paradigm how do you write a
class structure where librarian and student have one common and multiple separate functions to
perform?
# Arraylist is a synchronized collection object (True or False). Depends on your answer. How do you get
a synchronized version of ArrayList? What do you think what approach Java people would have taken to
make a synchronized list () method of Collections Class that returns a synchronized version of ArrayList?
# Explain the Java 8 Concepts you have worked on. & How does parallel stream work?
# Explain Functional Interfaces. (Consumer, Supplier, predicate…Interfaces).
# Explain Core Java EE Web application TO Spring Core TO Spring Boot. Considering this evolution how
does Web Application development change?
# How does the Dispatcher Servlet Work in Spring MVC and Spring Boot?
# Project Architecture and roles and responsibilities in previous projects.
# Object-oriented programming scenario-based question (eg. How will you design developer and team
leader using oops and type of relation b/w them)
# Association concept and the type of relation b/w classes
# Singleton design pattern, its use case and how will you make your class a singleton
# If you make your class as singleton and when you create the clone of that class then whether singleton
design be violated or not. If yes then what are the changes to be made in the singleton class? If no How-
explain.
# Whether the hashmap is synchronized or not.if not what are its limitations? To mitigate these
limitations which collection we should use and how it will improve? Also, performance will improve or
not by using the new collection compared to hashmap. If not what is an optimal solution for this?
# What is the difference b/w Java web application and Spring web application and which is better and
whose performance will be better?
# String s1=”abc”
String s2=”abc”
Then how many objects will be created and how many references will be there?
Also If String s2=s1 then how many references will be there?
# What is a bean?
# Expose an rest api to another application how to do.
2. Have u ever built docker using spring boot?
3. How to disable debug logs?

Java & Java 8 :

# OOPS concept.
# Serialization and Externalization.
# collections features
# Java 8 features.
# write a program to find even numbers in the list using Stream / StreamAPI questions
# Garbage collection and types like Young generation, Old generation.
# Internal working of hashmap.
# Fail Fast and Fail Safe iterator.
# Design patterns.
# How to execute multiple tasks using a stream
# Fork in Java
# How to remove a specific element from ArrayList
# Convert the list into a set only in a single line of statements.
# What is Hashcode, its use
# Hashcode and equals.

# Final keyword, where you have used and why


# Final class
# How to Sort-Object based on some properties(Like sort employees on basis of their name)
#Sort the elements of a list of strings in ascending order using Java 8.
# Which collection interface will be used to store objects in sorted order
# How to specify heap size and stack size for the project
# Servers used to run applications on production
# Exception handling in detail
#Define your custom exception what type of constructor do we need in creating a custom exception?
#How to handle exceptions of checked exceptions?
# Overriding exception rules?
# How can we catch multiple exceptions in a single line of statements (MultiCatch block)?
# What is optional and its usage
# What is a functional interface/ how to create it?
# Where to use Method reference
# Explain Stream API / stream types/operations in the stream.
# Find out the maximum number from the list of integers using Java 8.
# Can we create a custom operation in the stream?
# lambda expression example? where to used
#Collections used and internal working, identity hashmap, TreeSet, working of hash-based data
structures.
# What are the java8 futures you used?
# Difference between intermediate and terminal operators?
# What is JVM?

# How does HashMap work internally?

# Difference between ArrayList and LinkedList?

# Difference between ArrayList and Vector?

# Difference between HashMap and HashTable?

# What is overloading and overriding?

# what is the return type for overloading and overriding?

# Is it possible to override static and private methods?

# Why LinkedList is fast for adding and deleting elements to collection?

# Is the HashTable and HashMap thread safe?

# How to check if a list is empty or not using Java 7 and Java 8?

# What is ConcurrentHashMap?

# Difference between the Comparable and Comparator Interface? or how can we do sort of
elements in collections?
# what is a hash collision in HashMap and how it is solved with Java 8?

# Difference between stack and heap memory?

# What is static where do you use static methods in your project?

# Difference between final, finally, and finalize in Java?

# How to Increase JVM Memory?

# When to use TreeSet and TreeMap?

# Collection – hashmap

# When ArrayList and when the linked list

# Ways to create an array list and how to create a sublist

# Ways to create maps

# Iterate hashmaps and streams with hashmap

# Create ArrayList to map using streams


# Try catching and trying with multiple catches

# Try with resources

# Trees in collection

# Sorting using streams

# Same interface in 2 different classes and calls one method of class 2

# Difference between ArrayList and Array.

# Difference between HashMap And TreeMap.

# How many null keys are present in HashMap?

# HashMap null Key is only inserted once. Why?

# From following snippet tell what will be the size of the hashmap:

map.add(new ("Java", "ABC"));


map.add("Java","XYZ");

# How can I add the same Key in the HashMap?

# At what index is the null key inserted in HashMap?

# How does Hashcode of null is calculated?

# By default, the TreeMap gives ascending order. How can we make it in descending order?

# Different ways to iterate a list?

# How to remove an element using ListIterator?

# How can I make one collection non-modifiable?

# Can we add or remove elements in a list during traversal or will it throw any exception?

# Using stream API convert a list of the employees into the map.

# Unit Testing

# What is mocking?
# Which classes you mocked like controller or service and dao?
# Is it possible to mock static and private methods?
# Mockito and how do u mock dao classes?
Hibernate

# Difference between get and load method.


# Transaction management.
# What is dialect for database
# Version of hibernate
#How to map Java objects into DB?
# What operation you have performed using hibernate
# Types of join, and when to use which join
# No. Of rows in the largest table of your project
# What is used when a large amount of data is processed ( batch processing)
# Does batch processing handle a sequence of data?
# Types of queries used to access data from the database
# Prototype in Hibernate
# How to configure Hibernate
# Methods used in hibernation.
# Generator Strategy
# How to handle exceptions in hibernate
# Scenario-based question in relationship in hibernate
# Data Source

MySQL

# Which datatype is used in DB to store numeric value in decimal format, Numeric is there in
MySQL?
# Types of join, and when to use which join
# Union vs Union All
# Triggers
# Stored Procedures and Functions and their difference
# Query – Where Clause, In Clause
# Delete vs Truncate vs Drop
# SQL Inject, how to prevent it.
# Group Clause
# Which is better – Select * or Select column 1, column 2 ….. column N
# Scenario-based Question

Maven – Building Tool

# Maven Repository Type


# Location of local Maven Repository
# Where and how to define maven dependencies
# Maven life cycle
# How to exclude some jars from maven dependencies
# How to run tests using mvn cmd
# How to update or re-download maven jars from the remote repository?

Angular

# What is lazy loading? how to achieve in angular?


# What are lifecycle hooks? explain in detail
# how to solve the CORS issue in local env ?
# How to provide view/route access based on permissions/roles?
# how to handle bulk data on UI?
# How to debug/troubleshoot production JS issues locally?
# What are the different types of Sonar issues fixed by you?
# How did code move from development to production/UAT/SIT environment in your last
project?
# What are scopes in angular? what are ways to inject dependency in component?
# What kind of custom/complex components you have built in your past projects?
# how to handle reports where few things are common for all clients?
# Difference between angualrJs and Angular 2+
# How can angular components communicate with each other
# Can we use @Input and @Output in parent components
# How can we load children's components in angular? ( type of loading components like lazy
loading, preloading, eager loading, use of load children())
# Different ways to load components in angular
# How to give authorization to user for specific functionality available in the project
# Use of Authguard in Angular
# Command used to serve/build/test angular application project
# Use of ngOnChanges lifecycle hook
# What are different preloading strategies?
# Difference between template-driven and reactive form approach.
# What are the steps to create custom form control?
# What is the use of an interceptor?
# Difference between pure and impure pipe
# What is the use of the onrush change detection strategy?
# How can we improve the performance of the angular application?
# What is the use of Observable/Subject/BehaviorSubject/ReplaySubject?
# Details about rxjs pipes tap/map/filter/finalize/combine latest/fork-join/zip

Unix:
1. Syntax for execution of Unix shell scripts.
2. Use of -x in execution command.

Other General questions regarding the development

# What is JMS? (Java Message Service) -IMPORTANT


# The Java Persistence API (JPA)
# Can we add multiple data sources in the spring application?
# Multithreading questions in Java
# Database: types of joins, the difference between Union and inner join, triggers, difference
between Procedures and Functions, etc.
# Application monitoring – Splunk etc.
# Maven/Docker - if used then please also prepare that
# Explain roles and responsibilities, project architecture, domain, etc. for projects worked on in
earlier experience
# Some scenario-based questions about how one works in a project and responds to situations
# Mysql – Scenario-based queries
# How to build a project from scratch both front-end and backend projects

QA interview questions asked

● Discuss about agile methodology.


● What are the roles available in an agile team?
● Defect age.
● Different between validation and verification.
● SQL joins
● Java questions- polymorphism, java features, and method overloading and overriding.
● Difference between string equal and operator in equal
● 20 percent-scenario-based question asked in agile.

Automation-related questions (Selenium/Cucumber etc)


● Selenium questions
● Wait, Xpath, some scenario-based questions.
● Cucumber topics-different between scenario and scenario outline and feature files.
● Explain about the ex-organization framework
● How to load the config-properties File?
● POM Model How it's been initialized and how it's being executed
● How the data has been retrieved from the Excel sheet?
● How to run the test scripts?
● Is the Static method can override? if not then what's the reason?
● what is Collection?
● Scenario: To print the count of 'Number:2 occurrence' from 1 to 30 using Array where
loop, typecasting, or Collections shouldn't be used
● Scenario: Find the duplicate of an array that finds a maximum number of duplicate
element occurrence counts and print the maximum duplicate count.
● Launching the URL where the Authentication pop-up is displayed and how to handle it.
● how do verify the label is bold or not
● How to run the parametrization in TestNG,
● How to run selective group of test cases in TestNG
● Is the priority count -1?
● How the maven build tool work? [if one has mentioned Maven in resume]
● what is a Data provider?
● Difference between data provider and Parameterization?
● What is Monochrome in Cucumber?
● What are Static methods and Dynamic methods?

Topics to cover for Java/Spring/hibernate

The candidate will need to show working experience in various aspects/topics as per below

Technology Topics
OOPS Features - Abstraction, Encapsulation,
Polymorphism, Composition, Aggregation
Exception Handling
Collection Framework
Core Java - Java Multi-Threading
Basics Concurrency Framework
Serialization /Externalization in Java
Class loader types
Java Internal Memory Management
HashMap
Microservices Architecture
SOA Vs Microservices
Pros and Cons of Microservices
Microservices /
Discovery Services, Config Service, Gateway Service etc
Spring Boot
What advantages of Spring Boot framework over Spring
Framework
Spring boot Autodetect Feature
MVC Design Pattern/ Configuration in Spring
Spring MVC Dispatcher Services / Handler Services
XML vs Spring Annotation vs Java Config Annotation
Struts2.0 flow.
The difference between forward and redirect
Struts
Lifecycle of servlet and JSP
How to send data from the servlet to JSP page
SOAP and RESTFUL Web services
How to Expose EJB as a web service
Web service
WSDL generation
SoapUI Tool
When to choose Hibernate and iBatis
load and get in Hibernate
entity class for a table in Hibernate
Types of generators-
Persist, SaveOrUpdate, and merge use
type of cache
lazy loading
Hibernate
What is cascade in hibernate
Mapping And Configuration Files In Hibernate
Hibernate Versioning Of Objects
Inheritance Mapping In Hibernate
Hibernate Inheritance: Table Per Class Hierarchy
Hibernate Inheritance: Table Per subClass Hierarchy
Hibernate Inheritance: Table Per Concrete Class Hierarchy
Basics Concepts of SQL, Joins, IN and EXISTS Clause, Sub
query, With clause query, In line queries
Union and Union all
High Water Mark
Oracle
Triggers/ Procedures/ Functions/Views/M Views/Cursors
Collections- V Array, associate array
Performance tuning - Indexes, hints , explain plan ,
partitioning

You might also like