Tag Archives: java

Applet in Java

 Java applets are small programs that run on a web browser to perform a specific task. They were introduced with the release of the first version of Java in 1995 and quickly became popular for their ability to add dynamic content to web pages. Applets are essentially mini-programs that are written in Java and run Continue Reading »

Java Predicate

Java Predicate is a functional interface that is part of Java.util.function package. It was introduced in Java 8. It represents a single argument function that returns a boolean value. A Predicate takes an input and returns either true or false, depending on the condition that is specified in the function. Using predicate to check if Continue Reading »

Memoization in Javascript

Memoization is a powerful technique used in computer science to optimize the performance of functions that are called repeatedly with the same arguments. In JavaScript, memoization is particularly useful for expensive computations that involve complex algorithms or data structures. At its core, memoization involves caching the result of a function based on its input arguments. Continue Reading »

Difference pass by reference or pass by value

Before discussing into JavaScript pass-by-reference or pass-by-value function, it is known about the difference between primitive and non-primitive. Primitive Values: – Data Types string, number, null, undefined, symbols, and Boolean are primitive values. Primitive values are passed by value in JavaScript. Non Primitive Values: – object, array, and function are non-primitive values. All objects and Continue Reading »

Java 11 feature and Comparison

Oracle provides new Java versions every six months. Even before it was launched, the September Java 11 version created quite a stir in the computer science industry by announcing that commercial usage of Java would subsequently be charged. The following articles will highlight major JDK 11 features, advancements, and deprecated functionality. Important Changes and Information: Continue Reading »

Performance tuning in Java 

Performance tuning is an essential aspect of software development, especially in enterprise-level applications where performance plays a significant role in user satisfaction and system stability. Java, being a popular programming language for enterprise-level applications, provides many tools and techniques for performance tuning. In this blog, we will discuss performance tuning in Java and the best Continue Reading »

Generating Java Code from Open API

Introduction:-  Open API (open application programming interface) Open API Generator can generate code based on an Open API yaml specification. We can generate request models, response models, and controllers of API. Following are the steps to create java code from Open API:- Step 1:-Create a yaml file for your API By using this Swagger.io, below Continue Reading »

Closure in Javascript

As per the definition of Javascript Developer, Closure is defined as the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). But what is meant by the terms “enclosed”, “surrounding state“, and lexical environment? No need to worry, we’ll discuss their terms and closure in this article with Continue Reading »

Java 8 Features

 Figure 1:Features of Java 8 JAVA 8 is one of the major feature releases of “JAVA programming language” development. It is one of the revolutionary releases of the development of software platforms. The initial version of Java 8 was released on 18 March 2014. It is responsible for upgrading Java programming,  tools, JVM, and libraries. Continue Reading »

Depth First Search (DFS) – Graph Traversal

Table of contents Definition Conceptual Implementation Java Code & Explanation Applications of DFS   Definition Depth First Search (DFS) is an algorithm for traversing Graph Data Structure. The algorithm starts at some arbitrary node in the graph and explores as far as possible along each branch before backtracking. Stack Data structure is needed to keep Continue Reading »

JavaScript Arrays

An array is a linear data structure and collection of items stored at a contiguous memory location. Pairs of square brackets [ ] represent an array and all elements are comma (,) separated. An Array can hold multiple values(elements) of any type i.e (String, Number, Boolean, objects, and even other Arrays ) under a single Continue Reading »

HOISTING IN JAVASCRIPT (Variables & Function)

A Person with another programming background is definitely confused with hoisting in Javascript. So let’s deep dive into the hoisting in javascript The Javascript engine creates the global execution context when we execute a piece of Javascript code. Global Execution Context has two phases : (i) Creation Phase (ii) Execution Phase Definition: During the creation Continue Reading »

Access Modifiers in Java

Introduction: In Java, we have to deal with classes, methods, variables, etc. Let’s suppose we have a class and we need to use variables or methods in different classes/packages. OR we want to specify that a variable or method will be accessed within a defined area. To manage the accessibility of any variables, methods, or Continue Reading »

Recursion vs Dynamic Programming — Fibonacci

Introduction of Recursion and Dynamic Programming: Recursion is the process in which a function calls itself until the base cases are reached. And during the process, complex situations will be traced recursively and become simpler and simpler. The whole structure of the process is tree-like. Recursion does not store any value until reaching the final Continue Reading »

Annotations in Java

Annotations are used to provide metadata about class or method in java and can be used while compiling the program. Annotations were introduced in Java 1.5 version. Before that, we had an XML file for configuration. We write annotations with the ‘@’ sign, for example, @Override annotation. Here ‘@’ sign tells the compiler about the Continue Reading »

Currying in JavaScript

What is currying? Currying is a technique of evaluating a function with multiple arguments, into a sequence of functions with a single argument. OR In other words, while a function, rather than taking all arguments at one time, takes the primary one and goes back to a new function that takes the second and returns Continue Reading »

Destructuring in JavaScript

The Destructuring introduced new features of ES6.JavaScript provides a mechanism to handle the array and properties of objects in a much more innovative way. this mechanism is called destructuring. destructuring means implies a complex structure into the simpler parts. Destructuring allows us to extract multiple properties from an object or an Array. It is a Continue Reading »