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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.