Skip to content
All Basic Articles
In Java, following are two different ways to create an array. Array: Simple fixed sized arrays that we create in Java, like below int arr[]… Read More
Linked List is a part of the Collection framework present in java.util package. This class is an implementation of the LinkedList data structure which is… Read More
  Java Collection framework provides a Stack class that models and implements a Stack data structure. The class is based on the basic principle of… Read More
Prerequisite: Arrays in Java A jagged array is an array of arrays such that member arrays can be of different sizes, i.e., we can create… Read More
1. Strings are Immutable Once a string is defined, it cannot be changed. # Python3 program to show that  # string cannot be changed   … Read More
Foreach loop is used to access elements of an array quickly without performing initialization, testing and increment/decrement. The working of foreach loops is to do… Read More
What is the output of the following code : print 9//2 (A) 4.5 (B) 4.0 (C) 4 (D) Error Answer: (C) Explanation: The ‘//’ operator… Read More
What is called when a function is defined inside a class? (A) Module (B) Class (C) Another Function (D) Method Answer: (D) Explanation: Quiz of… Read More
Consider the below statements in Python.  Python3 # A Python program to demonstrate the use of # "//" for integers print (5//2) print (-5//2) Output:… Read More
How would you solve below problems in C/C++? What is the smallest representable positive floating point number in C/C++? What is the largest representable negative… Read More
Consider below C program. The program has extra bracket around function name. // C program to show that extra brackets with function // name work… Read More
Truncate in Python There are many built-in modules in python. Out of these module there is one interesting module known as math module which have… Read More
We all love the mechanism of python, where we don’t have to bother about data types of the variables (don’t we!) Interestingly we have one… Read More
Following is a general way of printing 2D matrix such that every row is printed in separate lines. for (int i = 0; i <… Read More
Given two values ‘a’ and ‘b’ that represent coefficients in “ax – by = 0”, find the smallest values of x and y that satisfy… Read More
Cache is close to CPU and faster than main memory. But at the same time is smaller than main memory. The cache organization is about… Read More
Are CMS worth your time? Find out in this article. Content Management System (or CMS) is a framework already designed by other programmers and coders… Read More
Java provides us facility to create our own exceptions which are basically derived classes of Exception. For example MyException in below code extends the Exception… Read More
  FLOATING POINT ADDITION AND SUBTRACTION FLOATING POINT ADDITION To understand floating point addition, first we see addition of real numbers in decimal as same… Read More
Predict the output of the following program. class Test {     String str = "a";        void A()     {         try         {             str +="b";             B();         }         catch… Read More