Writing concurrent code is hard and testing correctness with concurrency is even harder. Though Java programming language provides lots of synchronization and concurrency support from language to API level, it eventually comes to an individual's diligence and expertise to write bug-free Java concurrency code. These Java concurrency and multi-threading best practices are a collection of some well-known tips, which help you to write better concurrency code in Java. Some of you may be familiar with these tips but it's often worth revising them time and time again.
Disclosure: This article may contain affiliate links. When you purchase, we may earn a small commission.
10 Object-Oriented (OOP) Design Principles Java Programmers Should Know
The Object-Oriented Design Principles are the core of OOP programming, but I have seen most of the Java programmers chasing design patterns like Singleton pattern, Decorator pattern, or Observer pattern, and not putting enough attention on learning Object-oriented analysis and design. It's essential to learn the basics of Object-oriented programming like Abstraction, Encapsulation, Polymorphism, and Inheritance. But, at the same time, it's equally important to know object-oriented design principles. They will help you to create a clean and modular design, which would be easy to test, debug, and maintain in the future.
Labels:
best of javarevisited
,
core java
,
design patterns
,
programming
Introduction of How Android Works for Java Programmers
Android development is a popular buzz in the Java programming world. It's Android, which keeps Java at the forefront of the last couple of years. Now, How important is it to understand or learn Android for Java programmers? Well, it depends on, if you like application development and wants to reach a mass, Android offers that opportunity to you. Millions of Android phones are available and they keep increasing, with pace, much higher than iPhone or iOS. What all this means is, it does make a lot of sense to learn Android programming for Java programmers, and this article is about that, but this is also one of the good reasons to learn Java programming. This tutorial will give you a basic idea of How Android works? not detailed but a good overview.
Labels:
android
,
best of javarevisited
,
core java
3 Design Patterns and Best Practices Java Programmers Can Learn From Spring Framework
There is no doubt that the Spring Framework is one of the most popular Java frameworks and makes it really easy to create real-world, enterprise-grade Java applications easy by providing features like dependency injection and inversion of control. But, to be honest, Spring is much more than just another DI and IOC framework. It goes one more level to simplify many Java APIs like JDBC, JMS, Java Mail, etc by providing a useful layer of abstraction. It's much more comfortable to work with JDBC with Spring's JdbcTempalte and other utility classes. They remove most of the friction Java developer faces with respect to executing SQL statements and processing ResultSet to get the Java object they want.
Labels:
best of javarevisited
,
best practices
,
core java
,
spring
Top 10 JDK 10 Features Java Developers Should Learn in 2023
Hello Guys, last week I wrote an article about 5 New Java features from Java 9 to Java 15 and which are worth learning in 2023, and it was very much liked by you, so I thought to update this article which I wrote when JDK 10 came out, which provides a nice overview of essential Java 10 features. Whether you have no idea about Java 10 features or you know a little bit you can use this article to refresh your knowledge or get a nice overview of them. While we all are talking about Java 9 and some people are yet to adopt Java 8 in their projects, here comes the new release of Java, the JDK 10. It's available to download now on Oracle's website.
Labels:
best of javarevisited
,
core java
,
Java 10
Subscribe to:
Posts
(
Atom
)