Spring IoC Container

Spring IoC Container The Spring container is at the core of the Spring Framework. The container will create the objects, wire them together, configure them, and manage their complete life cycle from creation till destruction. The Spring container uses DI to manage the components that make up an application. These objects are called Spring Beans. The […]

Pattern matching in Scala [Quick Look]

Pattern matching in Scala Overview Pattern matching is a mechanism for checking a value against a pattern. It is a more powerful version of the switch statement in Java and it can likewise be used in place of a series of if/else statements. Syntax A match expression has a value, the match keyword, and at least one case clause. import […]

What is Scala and Start with First Scala Project [quick look]

What is Scala? Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages. Scala is object-oriented Scala is a pure object-oriented language in the sense that every value is an object. Types and behaviour of objects are described […]

Scala Functions [quick look]

Overview Scala supports functional programming approach. It provides rich set of built-in functions and allows you to create user defined functions also. In scala, functions are first class values. You can store function value, pass function as an argument and return function as a value from other function. You can create function by using def keyword. […]

How to read XML file in Java Using DOM Parser

How to read XML file in Java Using DOM Parser In this article, we will learn how to read XML file in java using DOM Parser. DOM stands for Document Object Model. DOM parser parses the entire XML file, loads it into memory and then models it into a tree structure with each element representing tree branches.Note:- […]

How to read XML file in Java Using SAX Parser

How to read XML file in Java Using SAX Parser In this article, we will learn how to read XML file in java using SAX Parser. SAX parser, or Simple API for XML parser uses callback function (org.xml.sax.helpers.DefaultHandler) to inform clients about the XML document structure. SAX Parser is faster and uses less memory than DOM […]

Write a program to convert decimal number to binary number

Write a Program to Convert Decimal number to Binary number We need to write a Java Program to Convert Decimal number to Binary number without using any inbuilt function. We can achieve this using numeric operations. Java Program to Convert Decimal number to Binary number Output Binary of 29 : 11101

Write a Program to check if given number is Perfect number or not

Write a Program to check if given number is Perfect number or not This article will help you to understand Java program to check perfect number. A perfect number is a positive integer that is equal to the sum of its proper positive divisors, that is, the sum of its positive divisors excluding the number […]

Write a Program to check if given number is binary or not

Write a Program to check if given number is binary or not This article will help you to understand “java program to check binary number”. In mathematics and digital electronics, a binary number is a number expressed in the binary numeral system or base-2 numeral system which represents numeric values using two different symbols: typically […]

Write a Program to Reverse a String using Recursive Methods

Java program to reverse string using recursive methods. Write a Java program to Reverse String using Recursive Methods. We should not use any string reverse methods to perform this task. Java Program to Reverse a String using Recursive Methods Output Given Strring : Rainy Season Reversed String : nosaeS yniaR

Pin It on Pinterest