Recent Posts

String in python with example

String in python with example

A string is a sequence of characters. Strings can be created by enclosing characters inside a single quote or double quotes. Even triple quotes can be used in Python but are generally used to represent multiline strings and docstrings. For example: ‘Quescol’, “python”, “123”, “1”. 

Break and continue in python with example

Break and continue in python with example

In this tutorial, we are going to learn the use of break and continue statements to alter the flow of the loop. The loops are repeated over the code block until the test condition is false, but sometimes we need to stop the current iteration 

If-else  statement in python with example

If-else statement in python with example

In this tutorial, we are going to learn the working of the ‘if-else’ statement in python. ‘if-else’ statement is a conditional statement that executes the ‘if’ block if the condition mentions if true and executes the else block if the condition becomes false. The else 

While loop in python with example

While loop in python with example

In this tutorial, we are going to learn the use and implementation of the ‘while’ loop in python. While Loop in python is used to repeatedly execute a block of statements until a given condition is satisfied. And when the condition becomes false, the block after 

Python ‘for loop’ with example

Python ‘for loop’ with example

In this tutorial, we are going to learn about the python ‘for’ loop. The ‘for loop’ is a looping statement in python which is used to iterate over a sequence or any other Iterable objects such as lists, tuples, dictionaries, strings, etc. The flow chart 

Why is string immutable in java?

Why is string immutable in java?

String is immutable in java becuase we can’t modifiy or change it once it is created. Basically Immutable itself means unmodifiable or unchangeable. In Java Once we created string object we cannot change and modify its data or state. Below is an example to see 

3 simple ways to reverse String in Java

3 simple ways to reverse String in Java

There are many possible ways to reverse String in Java. We can use a StringBuffer, StringBuilder, and iteration, etc. 1). Using a reverse() method of StringBuilder class 2). By Converting String to character array using toCharArray() and then reverse. Here we will first convert String 

How to use equals method in Java with example

How to use equals method in Java with example

In Java, there is a equals() method which is used to compare strings. This comparison of strings are based on the content of the string. How the equals() method works in Java? equals() methods compare two strings and if all characters of a string is 

HashMap Implementation in Java

HashMap Implementation in Java

In Java HashMap is a very important and most used concept. It is mostly used in enterprise-level coding to mapping. Also, it is used in e-commerce applications to map orders with customers. Map is a class of collection in Java which is used to store 

Write the Characteristics of c language

Write the Characteristics of c language

C is a structured programming language. It was developed in 1973 by Dennis Ritchie at AT & T Bell Laboratories. It is very popular programming languages today because of its structure, fast, high-level abstraction, machine independent feature. Characteristics of ‘C’ Language It has a very 

a ternary operator in c language explain

a ternary operator in c language explain

Instead of writing longer if and else conditional statements most of the programmer prefer to use the ternary operator for decision making. In c programming language ternary operator take three arguments: The first argument is for comparison The second argument is the result which will 

What is the importance of c language?

What is the importance of c language?

It does not matter how fast our technology is moving and how much new language is coming in the market but still, In today’s world, we can’t ignore the C programming language. Still, there is very significant use of the C programming language in today’s 

Write the difference between java and javascript

Write the difference between java and javascript

Java and JavaScript both are completely different languages. In simple words, we can also say that it is like different sides of a coin but also if we try to find then they have some little similarities. Both are mostly used language by the programmer 

Explanation of all types of classes in java

Explanation of all types of classes in java

There are total 6 types of classes in Java 1). Concrete class A concrete class is a normal class that does not extend any abstract class, parent class, and also not implemented any interface. It has all methods of itself. In general, for any small 

What is the Application of oops?

What is the Application of oops?

Application of OOP (Object Oriented Programming Language) Below I have mentioned various applications of OOPs: Client-Server Systems Object-oriented Programming is used widely in the design of Client-Server Systems. This Client-Server provides the IT infrastructure and helps to create object-oriented Client-Server Internet (OCSI) applications. Infrastructure may