Best Practices

Browse this page to find tutorials covering best practices to be followed in regular java development. Follow these tutorials and they will help you to improve your coding skills in big way.

Related Tags

Tutorials

Difference between Camel Case, Pascal Case, Snake Case and Kebab Case

In any programming language, naming conventions are a very important best practice to follow. Different parts of a program are written in specific cases so they can communicate easily their purpose in the source code. This short article lists some popular casings such as camel case, pascal case, snake case, and kebab case along with …

Single Responsibility Principle

The single responsibility principle (SRP) states that a software component (in general, a class) must have one and only one responsibility.

A Comprehensive Guide to SOLID Principles

Learn SOLID principles in Java with examples. Single Responsibility Principle, Open Closed Principle, Liskov’s Substitution Principle, Interface Segregation Principle, Dependency Inversion Principle.

Unit Testing Best Practices

It is overwhelmingly easy to write bad unit tests that add very little value to a project while astronomically inflating the cost of code changes. This post will go through the JUnit best practices we must consider while writing the test cases. In programming, “Unit testing is a method by …

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.