Last updated: Feb 22, 2022

Functions

A function is a block of code that performs a specific task. If some functionality is performed at multiple places in software, then rather than writing the same code, again and again, we create a function and call it everywhere. This helps reduce code redundancy. Functions make maintenance of code easy as we have to change at one place if we make future changes to the functionality. Functions make the code more readable and easy to understand.
Types Of Methods
In this blog, we will be learning about Types Of Methods.
How to Call a Method in Java? MEDIUM
Learn how to call a method in Java with this comprehensive guide. Understand Java method calls and enhance your coding skills with step-by-step instructions.
Static Blocks In Java EASY
Static blocks in Java can be created using the static keyword. The static blocks in Java are automatically called once every time a Java class executes.
Static and Instance Methods in Java MEDIUM
Instance methods in Java require an object of the class, while static methods can be called directly from the class without an object.
Why Main Method is Static in Java? MEDIUM
This article explores why the main method is static in Java, covering its structure, purpose, and key components for program execution.
Author Rashi
0 upvotes
Pass by Value and Pass by Reference in Java EASY
In this article, we will learn what pass by value & pass by reference mean, how Java handles them, & look at examples using both primitive types & objects.
Method Overriding In Java EASY
Method overriding in Java allows a subclass to provide a specific implementation of a method already defined in its superclass.
Virtual Function in Java EASY
In this article, we will discuss the concept of virtual functions in Java, understand how they are used, and look into different examples to understand their implementation.
Difference between Static and Non Static Method in Java EASY
In this article, we will discuss the main differences between static and non-static methods, like how they are accessed, called, bound, overridden, allocated memory, initialized, and scoped with examples.
Dynamic Method Dispatch or Runtime Polymorphism in Java MEDIUM
Learn about Dynamic Method Dispatch (Runtime Polymorphism) in Java, including method overriding, examples, advantages, disadvantages, and applications.
Can we Overload or Override static methods in java? MEDIUM
This blog covered the topics of Overloading and Overriding static methods in java.
Wait() Method in Java EASY
In this article, we'll look at the syntax, parameters, return value, and exceptions of the wait() method in Java.
Method Hiding in Java EASY
This article will discuss the method hiding in java in detail with the help of some examples.
Call by Value and Call by Reference in Java EASY
In Java, Call by value" passes a copy of the variable, so changes don't affect the original. Objects use references, but the reference itself is passed by value.
Collections swap() method in Java with Examples EASY
The Swap function in java as the name suggests is use to swap two values of a particular array with each other.In programming languages like Java we have to frequently use this swap function in different scenarios.
Java Math.round() method with Examples EASY
In this article, we will discuss Java Math.round() method with Examples, which helps to round off decimal values to its nearest integer.
Math pow() Function in Java EASY
Power function in java is typically implemented using the Math.pow() method. It calculates the power of a given base to a specified exponent, providing a convenient way to perform exponentiation in Java programs. Read on to lean more!
Math pow EASY
In this article, we will discuss math pow, its implementation, and its usage in programming languages with some examples.
Collections.reverseOrder() Method in Java with Examples EASY
The reverseOrder() method in Java's Collections class helps sort a collection in reverse order by returning a special tool called a comparator.
Java Scanner Nextdouble() method MEDIUM
Discover the Java Scanner nextDouble() method with examples, outputs, parameters, and return values. Learn nextDouble in Java, complete with FAQs for better understanding.
parseInt() Method in Java MEDIUM
The parseInt() method in Java converts or parses the string representation of numeric data into actual integer values.