Java Stream flatMap() Method
flatMap() in Java brings two features; map operations in Java stream API and flattening a nested structure together.In mapping operation in Java stream the given function is applied to all the elements...
View ArticleSpliterator in Java
Spliterator in Java just like iterator, is used for traversing the elements of a source. The source of elements covered by a Spliterator could be, for example, an array, a Collection, an IO channel, or...
View ArticlePython First Program - Hello World
Once you are done with Python installation first thing you want to do is to write hello world Python program to check if every thing is working as required or not.Python command lineYou can enter the...
View ArticleString Comparison in Java
In String class in Java there are number of methods provided to compare the Strings or the portion of the strings. This post shows some of the most used methods for comparing Strings in Java and also...
View ArticlePassing Object of The Class as Parameter in Python
In this post we’ll see how to pass object of the class as parameter in Python.Passing object as parameterIn the example there are two classes Person and MyClass, object of class Person is passed as...
View ArticleNamespace And Variable Scope in Python
In this post we’ll see what is Namespace in Python and how different scopes are created as per the operating namespace.Table of contentsWhat is nameNamespace in PythonTypes of namespaces in PythonScope...
View ArticleLocal, Nonlocal And Global Variables in Python
In this post we’ll learn about global variables, local variables and nonlocal variables in Python, what is the scope of these variables and usage examples.Table of contentsGlobal variable in...
View ArticleGlobal Keyword in Python With Examples
In this post we’ll see what is global keyword in Python and how to use it.To understand global keyword better an understanding of local, global and nonlocal variables is required, as a requisite please...
View ArticleNonlocal Keyword in Python With Examples
In this post we’ll see what is nonlocal keyword in Python and how to use it.To understand global keyword better an understanding of local, global and nonlocal variables is required, as a requisite...
View ArticleOperator Overloading in Python
In this post we’ll learn about Operator overloading in Python which is one of the OOPS concept like method overloading and method overriding. Operator overloading is an example of polymorphism as the...
View ArticleMagic Methods in Python With Examples
In Python there are predefined special methods that follow the convention of having method names suffixed and prefixed with double underscores for example __init__(). These special methods are also...
View ArticlePolymorphism in Python
Polymorphism is one of the four fundamental OOPS concepts. The other three being-InheritanceEncapsulationAbstractionPolymorphism is a Greek word where poly means many and morph means change thus it...
View ArticleAbstraction in Python
Abstraction is one of the four fundamental OOPS concepts. The other three being-InheritancePolymorphismEncapsulationWhat is AbstractionAbstraction means hiding the complexity and only showing the...
View ArticlePython Conditional Statement - if, elif, else Statements
Conditional statement is used to execute a set of statements based on whether the condition is true or not. For conditional execution of statements if statement is used in Python. You can also have...
View ArticlePython for Loop With Examples
The for loop in Python is used to iterate over a sequence (like string, list, tuple).Syntax of Python for loopfor var in sequence: for loop bodyelse: else_suiteAll the elements in the sequence are...
View ArticlePython while Loop With Examples
In Python programming language there are two loops for..in loop and while loop. In this tutorial you’ll learn about while loop in Python which is used to repeatedly execute the loop body while the...
View ArticleJava for Loop With Examples
In Java programming language there are three types of loops- for loop, while loop and do..while loop. In this post we’ll learn about for loop in Java along with usage examples.for loop in JavaIn Java...
View ArticleJava while Loop With Examples
In Java programming language there are three types of loops- while loop, do while loop and for loop. In this post we’ll learn about while loop in Java along with usage examples. while loop in JavaWhile...
View Articleif else Statement in Java With Examples
To control the execution flow Java programming language provides two types of conditional statements if-else and switch-case statement. In this post we'll talk about if and if-else statements in detail...
View ArticleJava do-while Loop With Examples
In Java programming language there are three types of loops- do-while loop, while loop, and for loop. In this post we’ll learn about do-while loop in Java along with usage examples. do-while loop in...
View Article