×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

Java

Java is a powerful and widely used programming language powering several development servers. It brought in a revolution by its feature of being platform independent which drove its wide adoption

Software Engineering

String Pool in Java

In this article, I have explained the String Pool in Java and how to implement it in Java programming. I have covered basic concepts of this topic. Also, I have explain the diagram.

Pooja Koul
Software Engineering

Regex Expressions in Java

Regex Expressions are a sequence of characters which describe a search pattern. It is generally used for 'find', 'find and replace' as well as 'input validation'. This article shall focus on how to write a Regex Expression in Java.

Priyanshi Sharma Priyanshi Sharma
Software Engineering

Snake Game in Java (OOP design concepts)

In this article, we have explored how to design the classical Snake Game using Object Oriented Programming (OOP) concepts and implement it using Java.

Priyanshi Sharma Priyanshi Sharma
Software Engineering

Why String is immutable in Java?

In Java, Strings are immutable which means that the existing String objects can't be changed i.e we can't modify the existing String objects or we can't change the internal state of the String objects.

Swati Priya
Software Engineering

Control Statements in Java

Java has three sets of control statement that might be utilized to change the progression of execution of a program. The first set of statements is called selection statements followed by iteration statements and jump statements.

ADARSH SINGH
Software Engineering

Command Pattern in Java

Command pattern is a behavioral-based design pattern that encapsulates a request/action in an object without knowing the internal operations. We have explored it in depth in Java.

Ethan Z. Booker
Software Engineering

Covariant Return Type in Java

Covariant return type in an Object oriented programming language means that the return type of any method can be replaced by a narrower type when it is overridden in the subclass or child class. We have explored it in Java in depth.

Shujaa Ahmad Shujaa Ahmad
Software Engineering

Multiple Inheritance in Java (using Interface)

Java is an Object Oriented Programming language and supports the feature of inheritance. We cannot have Multiple Inheritance in Java directly due to Diamond Problem but it can be implemented using Interfaces.

Roshni Verma
Software Engineering

Reducing Time limit of code in Java

In this article, we have explored how to make a Java code execute faster by handling Input and Output better. The ways we presented are Scanner class, BufferedReader class, User-defined FastReader Class and Reader Class.

Raksha Jain
Software Engineering

String Class (java.lang.String) in Java

The java.lang.String class provides a lot of methods to work on string. By the help of these methods, we can perform operations on string such as trimming, concatenating, converting, comparing, replacing strings etc. We have explored it in detail.

Ritish Singh Ritish Singh
Software Engineering

How is 'this' reference in Java used?

The 'this' keyword in Java is a reference ( which means it manages some relation ) to the current object where it is called. We have presented 6 usage of this keyword which includes referring to current class instance variable and much more.

Ritish Singh Ritish Singh
Software Engineering

Singleton Design Pattern in Java

In this article, we have explored Singleton design pattern in Java in depth and demonstrated several approaches each with its own advantages and shortcoming. We have explored related concepts like early and late initialization as well.

Priya Raut Priya Raut
Software Engineering

Handling Exceptions in Java

The three main elements of an exception handler in Java are: try, catch and finally block. We have explored these in depth with examples and questions related to handling exceptions in Java.

Vaidehi Bhardwaj Vaidehi Bhardwaj
Software Engineering

Super keyword Reference in Java

Super keyword, in Java, is used to call the Constructor of the Parent Class. It is required when we need to pass some arguments to Parent Class and complete object instantiation.

Ishaan Ahuja
Software Engineering

Introduction to Abstract Window Toolkit (AWT) in Java

in this article, we have explored the basics of Abstract Window Toolkit (AWT) in Java which is used for creating Windows based Graphical User Interface. We demonstrated it by implementing a form UI using AWT in Java.

FAHAD ISRAR FAHAD ISRAR
Software Engineering

2D Arrays in Java

In this article, we have focused on 2D array in Java which is a variant of the usual 1D array by introducing a new dimension. We have demonstrated different operations with 2D arrays.

Raksha Jain
Software Engineering

2D Array List in Java

An Array List is a dynamic version of array and is supported in Java's collection library. In this article, we have focused on 2D array list in Java along with different methods applicable on it like indexOf.

Raksha Jain
Software Engineering

Difference between public, private, protected and default in Java

In the article, we have covered the differences between various types of access specifiers like public, private, protected and default in Java in detail.

Pooja Koul
Software Engineering

Types of Exceptions in Java

In this article, we have explored the different types of exceptions in Java. The main types are checked and unchecked exceptions. By definition, the types are build-in exceptions and user defined exceptions.

Divij Kulshrestha
Software Engineering

Check if Strings are equal in Java

In this article, we have explored how to find if two strings are equal in Java. There are three ways to check if two strings in Java are equal by == operator, equals() method and compareTo() method.

Aayushi Ghadiya
Software Engineering

Lambda Expressions in Java

Lambda expressions were added in Java 8 along with functional programming. Before understanding lambda expressions or lambdas for short, a prerequisite is to understand what is a Functional Interface.

Priya Raut Priya Raut
Software Engineering

JUnit Testing using Maven

JUnit testing is the unit testing framework for Java. We have explored JUnit testing using Maven in depth with a code example in this article.

Neha Singh
Software Engineering

Enums in Java

Enum in Java is a special type of a class which can have constructors,methods, and instance variables. Enum contains a fixed set of constant. In Java, a list of predefined values can be created using enums.

Pooja Koul
Software Engineering

Creating and Deleting Folders in Java

In this article at OpenGenus, we are going to discuss how to create and delete folders in Java. Folders are called directories in Java and we will do this using java.io package.

Kushagra Garg Kushagra Garg
Software Engineering

Inner Class in Java

In Java, inner class is a nested class which is defined within another class and it provides better encapsulation. There are several variants like anonymous inner class, method local inner class and much more.

Shujaa Ahmad Shujaa Ahmad
OpenGenus IQ © 2025 All rights reserved â„¢
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship