0% found this document useful (0 votes)
14 views4 pages

Java 8 - Spring Interviewer Guideline

Uploaded by

td46sv44b6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

Java 8 - Spring Interviewer Guideline

Uploaded by

td46sv44b6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Java 8 - Spring Interviewer Guideline

Topics to review:

● Java 8
○ Optional​ - ​Ref Link
○ Lambda​ - ​Ref Link
○ Stream​ - ​Ref Link
○ Collections​ - ​Ref Link
● Spring
○ Core​ - ​Ref Link
○ Cloud​ - ​Ref Link
○ Boot​ - ​Ref Link
○ Feing​ - ​Ref Link
○ JPA​ - ​Ref Link
○ JMS​ - ​Ref Link
○ Test​ - ​Ref Link

When a candidate is being phone-screened on those topics you may hear some of those
keywords.

Java 8:

What’s about ‘Optional’ feature in Java 8?


R: Optional is an Object container that helps dealing with ​null​ ​references​, it provides some
methods to validate if a reference is present as chaining actions which makes the code more
readable​ and t​ idy​.

What’s about ‘Lambda’ feature in Java 8?


R: Lambda expressions enable to treat functionality as a ​method argument​ (code as data).
A lambda expression is a short way to create functionality by ​implementing a functional
interface​ and declaring an ​anonymous method ​intended to be passed to another method.
This provides Functional Programming characteristics to Java such as ​Functions as first class
objects, Pure functions, Higher order functions.

What’s about ‘Stream’ feature in Java 8?


R: Stream is a Java API which works along with C ​ ollections API​, it provides a functional
approach to collection transformation, having capability to chain operations as choosing ​parallel
operations, reducing the amount of code lines needed.
It provides methods such as ​filter, sum, collect, map, convertTo,order, group​.
What about Collection Framework changes in Java 8?
R: Collection Framework has been modified in Java 8 to work along with Streams and
Lambdas, providing new methods to shorten the code needed to perform certain operations, as
provide them with lambdas to customize its behavior.

Spring

What’s Spring Core?


R: Spring core is fundamental portion of Spring framework, is composed by:
● IoC (Inversion of Control) c​ ontainer, in charge of inject dependencies based on code
annotations.
● Resources​, in charge of providing a handy way to handle external resources as files,
URLs, etc..
● Data binding, i​ n charge of wiring references in a project at execution time
● Validator: ​ in charge of providing helpers to create or customize data validators
implementations.
● Type Conversion,​ in charge of providing helpers to convert objects from one type to
another.
● Spring Expression Language​, in charge of providing a way to interpret text and
execute it.
● Aspect Oriented​, in charge of providing helpers to create programs using the Aspect
Oriented Paradigm.
● Null-Safety​, in charge of providing annotations and behaviour to simplify common
problems when dealing with Objects and null references.

What’s Spring Cloud?


​ ommon patterns in distributed systems,​
R: Spring cloud provide tools to build some of the c
such as
● configuration management, ● one-time tokens,
● service discovery, ● global locks,
● circuit breakers, ● leadership election,
● intelligent routing, ● distributed sessions,
● micro-proxy, ● cluster state
● control bus,

What’s Spring Boot?


R: Spring boot provides some tools to easily create ​stand-alone web applications​ you can
simply run. Its main characteristics are:
● Create stand-alone Spring applications
● Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
● Provide opinionated 'starter' dependencies to simplify your build configuration
● Automatically configure Spring and 3rd party libraries whenever possible
● Provide production-ready features such as metrics, health checks and externalized
configuration
● Absolutely no code generation and no requirement for XML configuration

What’s Spring Feing?


R: Is a Spring Cloud project intended to provide integration for Spring Boot applications through
autoconfiguration and binding. Generally used to create client implementations of services
allowing easy integration with external projects ​removing http communication interface.​

What’s Spring JPA?


R: Spring JPA, part of the larger Spring Data family, makes it easy to implement JPA based
​ pring-powered applications that use data access
repositories. It makes it easier to build S
technologies.​

Spring Data JPA aims to significantly improve the implementation of data access layers by
reducing the effort to the amount that’s actually needed. It’s only needed to write repository
interfaces, including custom finder methods, and Spring will provide the implementation
automatically, main features:

● Sophisticated support to build repositories based on Spring and JPA


● Support for Querydsl predicates and thus type-safe JPA queries
● Transparent auditing of domain class
● Pagination support, dynamic query execution, ability to integrate custom data access
code
● Validation of @Query annotated queries at bootstrap time
● Support for XML based entity mapping
● JavaConfig based repository configuration by introducing @EnableJpaRepositories.

What’s Spring JMS?


R: Spring provides an e​ asy way to activate JMS (​ Java Message Service) interaction inside
Spring Boot applications, so it’s only needed to code the actual implementation of the behaviour
​ essaging service.​
and interaction with the m

What’s Spring Test?


R: Spring provide some helpers to get the testing done depending on the approach of the tests
the most common tools used are:
● Mockito​: Used to mock dependencies and perform unit testing without Spring core
intervention.
● Spring runner​: Used to create a container allowing Spring to run normally, performing
its normal tasks so you can execute methods or services with the Spring help.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy