Azure Spring Apps is a fully managed service from Microsoft
(built in collaboration with VMware), focused on building and
deploying Spring Boot applications on Azure Cloud without
worrying about Kubernetes.
And, the Enterprise plan comes with some interesting features,
such as commercial Spring runtime support, a 99.95% SLA and some
deep discounts (up to 47%) when you are ready for
production.
You can also ask questions and leave feedback on the Azure
Spring Apps GitHub page.
Partner – Aegik AB – NPI EA (cat=JPA)
Slow MySQL query performance is all too common. Of course
it is. A good way to go is, naturally, a dedicated profiler that
actually understands the ins and outs of MySQL.
The Jet Profiler was built for MySQL only, so it can do
things like real-time query performance, focus on most used tables
or most frequent queries, quickly identify performance issues and
basically help you optimize your queries.
Critically, it has very minimal impact on your server's
performance, with most of the profiling work done separately - so
it needs no server changes, agents or separate services.
Basically, you install the desktop application, connect to your MySQL
server, hit the record button, and you'll have results
within minutes:
Accelerate Your Jakarta EE Development with Payara Server!
With best-in-class guides and documentation, Payara
essentially simplifies deployment to diverse
infrastructures.
Beyond that, it provides intelligent insights and actions to
optimize Jakarta EE applications.
The goal is to apply an opinionated approach to get to
what's essential for mission-critical applications - really solid
scalability, availability, security, and long-term support:
The AI Assistant to boost Boost your productivity writing unit
tests - Machinet AI.
AI is all the rage these days, but for very good reason. The
highly practical coding companion, you'll get the power of
AI-assisted coding and automated unit test generation.
Machinet's Unit Test AI Agent utilizes your own project
context to create meaningful unit tests that intelligently aligns
with the behavior of the code.
And, the AI Chat crafts code and fixes errors with ease,
like a helpful sidekick.
Get non-trivial analysis (and trivial, too!) suggested right
inside your IDE or Git platform so you can code smart, create
more value, and stay confident when you push.
Get CodiumAI for free and become part of a community of
over 280,000 developers who are already experiencing improved and
quicker coding.
Looking for the ideal Linux distro for running modern Spring
apps in the cloud?
Meet Alpaquita Linux: lightweight, secure, and powerful
enough to handle heavy workloads.
This distro is specifically designed for running Java
apps. It builds upon Alpine and features significant
enhancements to excel in high-density container environments while
meeting enterprise-grade security standards.
Specifically, the container image size is ~30% smaller than
standard options, and it consumes up to 30% less RAM:
Yes, Spring Security can be complex, from the more advanced
functionality within the Core to the deep OAuth support in the
framework.
I built the security material as two full courses - Core and
OAuth, to get practical with these more complex scenarios. We
explore when and how to use each feature and code through it on
the backing project.
DbSchema is a super-flexible database designer, which can
take you from designing the DB with your team all the way to
safely deploying the schema.
The way it does all of that is by using a design model, a
database-independent image of the schema, which can be shared in a
team using GIT and compared or deployed on to any database.
And, of course, it can be heavily visual, allowing you to
interact with the database using diagrams, visually compose
queries, explore the data, generate random data, import data or
build HTML5 database reports.
Slow MySQL query performance is all too common. Of course
it is. A good way to go is, naturally, a dedicated profiler that
actually understands the ins and outs of MySQL.
The Jet Profiler was built for MySQL only, so it can do
things like real-time query performance, focus on most used tables
or most frequent queries, quickly identify performance issues and
basically help you optimize your queries.
Critically, it has very minimal impact on your server's
performance, with most of the profiling work done separately - so
it needs no server changes, agents or separate services.
Basically, you install the desktop application, connect to your MySQL
server, hit the record button, and you'll have results
within minutes:
Creating PDFs is actually surprisingly hard. When we
first tried, none of the existing PDF libraries met our needs. So
we made DocRaptor for ourselves and later launched it as one
of the first HTML-to-PDF APIs.
We think DocRaptor is the fastest and most scalable way to
make PDFs, especially high-quality or complex PDFs. And as
developers ourselves, we love good documentation, no-account trial
keys, and an easy setup process.
In this tutorial, we’ll learn about Enumeration and Iterator in Java. We’ll also learn how to use them in code and what are the differences between them.
2. Introduction to Enumeration and Iterator
In this section, we’ll learn about Enumeration and Iterator conceptually and their use.
2.1. Enumeration
Enumeration has been present in Java since version 1.0. It’s an interface and any implementation allows one to access elements one by one. In simple terms, it’s used to iterate over a collection of objects such as Vector and Hashtable.
Let’s look at an example for Enumeration:
Vector<Person> people = new Vector<>(getPersons());
Enumeration<Person> enumeration = people.elements();
while (enumeration.hasMoreElements()) {
System.out.println("First Name = " + enumeration.nextElement().getFirstName());
}
Here, we’re printing firstName of a Person using Enumeration. The elements() method provides a reference to Enumeration and by using that we can access elements one by one.
2.2. Iterator
Iterator has been present in Java since 1.2 and is used to iterate over collections that were also introduced in the same version.
Next, let’s print firstName of a Person using Iterator. iterator() provides a reference to Iterator and by using that we can access elements one by one:
List<Person> persons = getPersons();
Iterator<Person> iterator = persons.iterator();
while (iterator.hasNext()) {
System.out.println("First Name = " + iterator.next().getFirstName());
}
So, we can see Enumeration and Iterator are both present in Java since 1.0 and 1.2 respectively, and are used to iterate over a collection of objects one at a time.
3. Difference Between Enumeration and Iterator
In this table, we’ll understand the differences between Enumeration and Iterator:
Enumeration
Iterator
Present since Java 1.0 to enumerate Vectors and Hashtables
Present since Java 1.2 to iterate over Collections such as List, Set, Map, etc
Contains two methods: hasMoreElements() and nextElement()
Contains three methods: hasNext(), next() and remove()
Methods have long names
Methods have short and concise names
Have no methods to remove elements while iterating
Have to remove() to remove elements while iterating
asIterator() added in Java 9 gives Iterator on the top of Enumeration. However, remove() in this particular case throws UnsupportedOperationException
forEachRemaining() added in Java 8 performs actions on the remaining elements
4. Conclusion
In this article, we’ve understood Enumeration and Iterator, how to use them using code examples, and the various differences between them.
All the code example used in this article is available over on GitHub.
Partner – Bellsoft – NPI EA (cat = Spring)
Looking for the ideal Linux distro for running modern Spring
apps in the cloud?
Meet Alpaquita Linux: lightweight, secure, and powerful
enough to handle heavy workloads.
This distro is specifically designed for running Java
apps. It builds upon Alpine and features significant
enhancements to excel in high-density container environments while
meeting enterprise-grade security standards.
Specifically, the container image size is ~30% smaller than
standard options, and it consumes up to 30% less RAM:
Creating PDFs is actually surprisingly hard. When we
first tried, none of the existing PDF libraries met our needs. So
we made DocRaptor for ourselves and later launched it as one
of the first HTML-to-PDF APIs.
We think DocRaptor is the fastest and most scalable way to
make PDFs, especially high-quality or complex PDFs. And as
developers ourselves, we love good documentation, no-account trial
keys, and an easy setup process.
Slow MySQL query performance is all too common. Of course
it is.
The Jet Profiler was built entirely for MySQL, so it's
fine-tuned for it and does advanced everything with relaly minimal
impact and no server changes.
Basically, write code that works the way you meant it to.
Partner – Machinet – NPI EA (cat = Testing)
AI is all the rage these days, but for very good reason. The
highly practical coding companion, you'll get the power of
AI-assisted coding and automated unit test generation.
Machinet's Unit Test AI Agent utilizes your own project
context to create meaningful unit tests that intelligently aligns
with the behavior of the code.