Quantcast
Channel: Tech Tutorials
Browsing all 862 articles
Browse latest View live

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 Article


Spliterator 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 Article


Image may be NSFW.
Clik here to view.

Python 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 Article

String 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 Article

Passing 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 Article


Image may be NSFW.
Clik here to view.

Namespace 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 Article

Local, 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 Article

Global 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 Article


Nonlocal 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 Article


Operator 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 Article

Magic 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 Article

Polymorphism 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 Article

Abstraction 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 Article


Image may be NSFW.
Clik here to view.

Python 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 Article

Image may be NSFW.
Clik here to view.

Python 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 Article


Image may be NSFW.
Clik here to view.

Python 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 Article

Image may be NSFW.
Clik here to view.

Java 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 Article


Image may be NSFW.
Clik here to view.

Java 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 Article

Image may be NSFW.
Clik here to view.

if 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 Article

Image may be NSFW.
Clik here to view.

Java 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
Browsing all 862 articles
Browse latest View live