Articles by Bashir Alam
Hackerrank Solution: Compress the string Python
Hacker Rank Solution for Compress the string in Python. 3 different ways to solve "compress the string" question from hacker rank
Master Python set intersection()
In python, we have a python set intersection method that consists of all the common elements of the input sets.
Numpy random Examples | rand() | randint() function
The Numpy random method in Python helps us to create random numbers. You can use random.rand(), random.randint(), random.uniform() function to generate random numbers
HackerRank Solution: Python Lists [Basic Data Types]
This tutorial covers solutions for Python Lists question from Hacker Rank using if statements, map and len() method Using the split() function
Python multi line strings [5 Methods Explained]
In this programming tutorial we learned about 5 different methods include using three double quotes, three single quotes, backslash, brackets, and using join() method to create python multi line strings
How to reverse a string in Java [4 Methods with Examples]
In Java programming language, we can use CharAt() method, getBytes(), toCharArray() and reverse() method to reverse a string in java. Explained with syntax and multiple examples.
Java String Concatenation Examples
Java string concatenation examples using plus operator, String.concat() method, StringBuffer class and StringBuilder class
Java string method explained [Easy Examples]
Concatenate Java strings, Finding length of String, Index and positioning of java strings, Comparing Java strings, change Java strings to upper case or lower case examples
Java Arguments vs Parameters: A No-Nonsense Tutorial
Discover the essential differences between Java arguments vs parameters to empower your coding journey. Dive deep into each concept, unlocking powerful insights that elevate your programming proficiency and clarity. …
Crafting Perfect Code with Java Optional Parameters
implement java optional parameters in java including the overloading method, optional container object, built pattern, and varargs
Transform Java Try Catch Blocks with Powerful Techniques
"Unlock the full potential of Java Try Catch for robust and error-free code. From basic implementations to advanced techniques, this comprehensive guide walks you through everything you need to know about Java Try Catch …
Master Java Constructors: A Comprehensive Guide
Uncover the intricacies of Java Constructors with our comprehensive guide. Whether you're a beginner or an expert, we dissect the essentials and advanced features, providing you with the skills you need to write …
Mastering Java Switch Statement [In-Depth Tutorial]
A Java switch statement enables us to select a set of statements to execute based on the value of some variable. basic syntax of the java switch statement with and without a break statement
How to implement Linked List in Java?
Discover how to effectively implement linked list in Java with our comprehensive guide. Learn about the Node class, various operations, and best practices. Master this dynamic data structure today!
While Vs Do While loop in Java [In-Depth Tutorial]
Looping constructs are the cornerstone of programming, allowing developers to control the flow of execution and repeatedly perform tasks within their
Array Vs ArrayList in Java [In-Depth Tutorial]
Explore the "array vs ArrayList" debate in Java, as we examine the key differences, use cases, and performance trade-offs between these data structures to make informed decisions for your programming projects.
Stack Vs Queue Explained in Java [In-Depth Tutorial]
In the world of computer science and software development, data structures play a crucial role in organizing, processing, and managing data efficiently. Among
Implement Design Patterns in Java [In-Depth Tutorial]
Implementing design patterns in Java requires an understanding of the patterns themselves, as well as a familiarity with Java syntax and programming concepts.
How to use Java Lambda Expressions?
Lambda expressions are a powerful feature introduced in Java 8 that allows you to write more concise and expressive code. A lambda expression is essentially
Hashtable Vs Hashmap in Java [In-Depth Tutorial]
In Hashtable vs hashmap, the hashtable is synchronized and thread-safe, making it suitable for multi-threaded applications, while Hashmap is not synchronized and faster than Hashtable, making it a better choice for …
Serialization and Deserialization in Java [Explained]
Serialization and deserialization are common techniques used in software development for data persistence and communication between applications. In Java,
Private Vs Protected in Java [In-Depth Tutorial]
In Java, methods are the building blocks of classes, which allow us to encapsulate functionality within an object-oriented paradigm. Java provides several
Java RegEx Explained [In-Depth Tutorial]
Regular expressions are a powerful tool used to match and manipulate text. They are a sequence of characters that define a search pattern, which can be used
Polymorphism in Java Explained [In-Depth Tutorial]
There are two types of polymorphism in Java: compile-time polymorphism and runtime polymorphism.
Encapsulation in Java [In-Depth Tutorial]
Encapsulation is one of the fundamental concepts of object-oriented programming (OOP) and is considered essential for building robust and scalable
How to use Generics in Java? [In-Depth Tutorial]
The guide will begin by introducing the basics of generics, including the syntax and its advantages. Then, it will delve deeper into the various ways in which
Difference between Interface and Abstract class
In Java, both abstract classes and interfaces are used to define abstract types. However, there are some differences between these two concepts.
How to implement inheritance in Java?
Java Inheritance
Java instanceof [In-Depth Tutorial]
instanceof in Java is an operator that is used to check if an object belongs to a particular class or a subclass of that class. It returns a boolean value of
Java String Indexing [In-Depth Tutorial]
Java String indexing refers to the process of accessing individual characters within a string by their position or index. Each character in a string is

