×
Home Discussions Write at Opengenus IQ
×
  • Join our Internship 🎓
  • #7daysOfCode
  • C Interview questions
  • Linux 💽
  • 🔊 Data Structures
  • Graph Algorithms
  • Dynamic Programming 💑
  • Greedy Algo 📔
  • Algo Book 🧠
  • String Algo 🧬
  • Home

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

StringBuilder in Java (java.lang.StringBuilder)

StringBuilder is a standard library class in Java which can be used in handling string data and is alternative to String Buffer and String data type.

Manasvi Singh
Software Engineering

Design Graph using OOP concepts in Java

You are going to learn to design and implement the graph data structure using OOP (Object Oriented Programming) Concepts. We will implement in Java but the ideas are applicable in any language.

Yash Shah
Algorithms

Applications of Hash Map

HashMap in java.util package implements the Map interface in java collection based on Hashtable. There are three main applications of Hash Map: Priority Queues, Dijkstra's Algorithm and Topological Sort.

Chenxin Fang
Software Engineering

Scope of Variables in Java Programming

Scope of a variable in Java defines how a specific variable is accessible within the program or across classes. It is defined by the use of private, protected and public.

Sukanya Rammohan
Software Engineering

Chrome Dinosaur (T-Rex 🦖) game with Processing in Java

We have designed and developed the Chrome dinosaur game (T-Rex game) and implemented it in Java using Processing.

Priyanshi Sharma Priyanshi Sharma
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
×

Visit our discussion forum to ask any question and join our community

View Forum
OpenGenus IQ © 2021 All rights reserved â„¢ [email: team@opengenus.org]
Top Posts LinkedIn Twitter