Why Do We Use Nested Classes In Java?

Here we will discuss Why We Use Nested Classes In Java? where the nested class is used for increasing the encapsulation and increase the readability of code or program. And as we know that to declare the class as static we need to have the class as a nested class.   Nested Class Nested classes … Read more

What Is The Difference Between ‘/’ And ‘//’ When Used For Divide? | Python Tutorial

In this tutorial, we will look what Is The Difference Between ‘/’ And ‘//’ When Used For Divide? while Dividing two numbers in Python, Here both the signs have different tasks to perform For example we need a complete answer in decimal the ‘/’ will be used whereas’//’ is used for getting the floor value or … Read more

Diagonal Traversal of Binary Tree – Print Data Diagonally ( Algorithm with Java Code )

Objective :  We are given a binary tree we need to print the data of tree diagonally , it is also know as Diagonal Tree Traversal. Sample Input : Let us consider the below tree 1 3           2 6.   8  5.          4 9    7     Out Put :  We … Read more

%d bloggers like this: