CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Author : Pooja.P.S.

Spring Framework – Dependency Injection

What is Dependency Injection? Dependency Injection is a concept used to eliminate dependencies from Java classes to make them easy to maintain and test. In the Spring Framework, Inversion of Control (IoC) is used to achieve dependency injection. Before moving any further into the topic, let’s understand what is a dependency. What is a Dependency? […]

Java – Networking using Sockets

What is Networking? Networking in Java, is the concept of establishing a connection between two computing devices, the Client and the Server, that are running on two different JREs. This connection gets established at the TCP layer. There can be n number of Clients that interact with the Server. Networking provides the sharing of data […]

Serialization in Java

Have you ever thought of storing the object information into a file or stream and retrieve it back when required? Java Serialization allows us to do this. Serialization is the process of converting a Java object into a stream of bytes. And deserialization is the reverse process, where the byte stream is converted to recreate the […]

Modules in Java

Modules in Java were introduced in Java 9 version. There were many other features that were added in Java 9, in addition to Modularity. But, this was an important decision made to modularize entire Java. The entire JDK and the rt.jar file were broken down into different modules containing packages. Even the coders can develop […]

Java – Lambda Expressions

Lambda expressions in Java deal with functional programming. It is an introduction to functional programming in Java. Lambda expressions were introduced in Java 8 version. They were introduced to provide implementations to functional interfaces and also provide a simpler way of working with functional interfaces. What is a Functional Interface? An interface is termed to […]

Java – How to impose constraints on Generics in Java?

In our previous article, we discussed generics in Java. There are a few constraints that we can impose while working with Generics using extends and super keywords. The ‘extends’ keyword with respect to class Let’s create the Demo<T> class using extends keyword. class Demo<T extends Number> {        T value; } This implies that the class […]

Java – How to use Generics in Java?

Java is a type-safe language. In the sense, in Java, it is required to specify the data type of the variable or the method argument while declaring it. For instance, see the examples below: int var = 5;   //  type of the variable is int void show(String arg){}   // type of the argument arg is […]

Java – How to use HashMap collection?

HashMap is part of Java Collections, which has been first implemented in Java 1.2 version and has been in use since then. Java Collection Framework was introduced as a technique to store and operate on data with ease. This collection framework provides many interfaces and its implementations to operate on data with speed and efficiency […]

Scroll to top