Software Engineering Different ways to handle Input and Output in Java Java handles input and output through streams and there are multiple input and output streams specialized for different use cases like BufferedOutputStream and much more which we have explored in depth in this article at OpenGenus.
Software Engineering Compare String in Java using ==, equals() and equalIgnoreCase() In Java, we can compare String using ==, equals() and equalIgnoreCase() and each has different results. We have explained it in detail in this article.
Software Engineering Using Final and Abstract in Java In the context of Java Inheritance, final and abstract are two important modifiers on deciding whether a class can take part in an inheritance relationship or not.
Software Engineering Working with Zip File System in Java In this article, we will work with ZIP file system in Java and see how we can move or copy files to ZIP, delete files from ZIP and rename a file in ZIP.
Software Engineering Method Reference in Java Method reference introduced in Java 8 release along with lambda expression as a mechanism to further shorten the lambda expressions containing a method call.
Software Engineering Introduction to Lambda Expression in Java Lambda Expression is one of the newest features introduced in Java 8 release. It is an expression but in the form of an anonymous function definition.
Software Engineering Java Time Package This article brings a brief introduction to some classes available by the Date/Time Java API, with samples to the main characteristics of each one of them.
Software Engineering Basics of Reflection in Java In Java, Reflection is a powerful and advanced feature that enables the programmers to inspect or modify the classes, interfaces, and methods of a program running on Java Virtual Machine.
Software Engineering Types of References in Java In this article, we explore the types of references in Java which includes strong reference, weak reference, soft reference and phantom reference.
Software Engineering Learn about Interface in Java in depth In Java, the interface is a mechanism, using which programmers can connect different software components and make them interact with each other.
Software Engineering SonarQube for Code Coverage Analysis on Java project using Maven In this article, we will learn to use SonarQube to analyze the code quality of existing projects and understand the different terms involved like code smell, code coverage and many others.
Software Engineering Understand Package in Java Java package corresponds to the file system directory managing different code levels. In this post, we have explored packages in depth.
Software Engineering Find the size of an object in Java In Java, it is possible to get the size of an object using its instrumentation package using its premain mechanism and getObjectSize() function
Software Engineering Basic Full Stack Calculator Project using DevOps tools In this article, we will develop a basic calculator in Java using DevOps tools like Apache Maven as a build tool, GitHub for source code management, Jenkins for Continuous integration and deployment and Sonatype Nexus for Artifact repository management.
Software Engineering How Java allocates memory to objects? In Java, all objects have memory located in the heap space where Java's garbage collection constantly remove unused objects to make application memory efficient
Software Engineering Java does not support goto In Java, goto is a reserved word but it has not implemented in Java. Hence, we do not have a same goto keyword/ feature as in other languages like C and C++
Software Engineering continue statement in Java continue statement is a program flow control statement in Java. It is used to skip the current loop iteration and switch to the next loop iteration.
Software Engineering Extend Java's type system with Generic Classes Generics are a Java paradigm which extends the language's type system, allowing the development of less redundant code with an unnecessary amount of casting
Software Engineering Java does not support Multiple and Multipath inheritance In this article, we will look at the limitation set by Java on inheritance and how it cannot support Multiple and Multipath inheritance.
Software Engineering Different types of Inheritance in Java In short, Java does not support inheriting multiple classes and hence, does not support multiple and multipath inheritance. Java supports single, hybrid, hierarchical and multilevel inheritance.
Software Engineering Using wrapper classes in Java A Wrapper class is a class whose object contains a primitive data types. We can think this as a primitive data type with an additional layer which enables it is get benefits of a custom user defined objects in Java.
Software Engineering Learn to use Queue in Java Collections Framework In this article, we will take a look at how to use the Queue class in Java Collections library. This is useful as one can directly use queue without natively implementing it
Software Engineering Building a basic Java Application using Apache Maven (Command Line) Apache Maven is a Configuration oriented build tool used to build projects whose source code in written in Java. We create a basic Java project using Maven
Software Engineering Working with Set in Java like a master Set is a data structure that is used as a collection of objects. Java supports it through its Java Collection library.
Software Engineering Write Custom/ User-defined exceptions in Java Custom Exceptions: These exceptions are not defined in Java librairies, but can be defined by us to handle customized error situations. Example: Suppose, our banking transaction program should raise exception for debit from an account with zero balance