DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • 10 Ways To Keep Your Java Application Safe and Secure
  • Integrate Cucumber in Playwright With Java
  • Java EE 6 Pet Catalog with GlassFish and MySQL
  • Predictive Services Development With Java and Weka

Trending

  • What Is Good Database Design?
  • How to Submit a Post to DZone
  • DZone's Article Submission Guidelines
  • A Guide to Data-Driven Design and Architecture
  1. DZone
  2. Coding
  3. Java
  4. Building an Application with Modern Java Technologies

Building an Application with Modern Java Technologies

Check out these Game of Life application samples with modern Java technologies.

Giorgio Sironi user avatar by
Giorgio Sironi
·
Jan. 06, 16 · Tutorial
Like (19)
Save
Tweet
Share
30.39K Views

Join the DZone community and get the full member experience.

Join For Free

Sometimes Java gets a bad rap from Agile software developers who suspect it to be a legacy technology on par with COBOL. I understand that being the most used language on the planet means there must be projects of all shapes and sizes out there, including lots of legacy.

That said, Java and the JVM comprise a huge and vibrant ecosystem producing value in all kind of domains from banking to Android applications and scientific software.

So I built a sample Game Of Life with what I believe are modern Java tecnologies:

  • Java 8 with lambdas support
  • Gradle for build automation and dependency resolution (substitutes include both Ant and Maven)
  • Jetty as an embedded server to respond to HTTP requests
  • Jersey for building the RESTful web services that calculate new generations of a plane, using JAX-RS
  • Freemarker templating engine to build HTML
  • Log4j 2 for logging, encapsulated behind the interface slf4j

On the testing side of things:

  • JUnit 4 for unit testing infrastructure
  • Mockito for Test Doubles
  • JUnit Quickcheck for property-based testing
  • Selenium for browser-based testing

Here's the result:

The application is self-contained and can be compiled, tested, and run without any IDE or previous machine setup except having a JDK 8 on your machine. See the project on Github for details.

Java (programming language) application

Published at DZone with permission of Giorgio Sironi, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • 10 Ways To Keep Your Java Application Safe and Secure
  • Integrate Cucumber in Playwright With Java
  • Java EE 6 Pet Catalog with GlassFish and MySQL
  • Predictive Services Development With Java and Weka

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: