 
 Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Programming Articles - Page 370 of 3366
 
 
			
			6K+ Views
Nested structures in Golang are a powerful feature that allows you to create complex data structures. They provide a way to define a structure that contains other structures as its fields. In this article, we will discuss how to create and use nested structures in Golang. What is a Nested Structure in Golang? A nested structure is a structure that contains other structures as its fields. This allows you to create complex data structures that can represent real-world objects. For example, if you were creating a program to represent a car, you might define a nested structure that contains fields ... Read More
 
 
			
			758 Views
Golang is a popular programming language known for its simplicity and scalability. One of the key features that makes Golang unique is its ability to name the return values of a function. In this article, we'll take a closer look at how to name the return values of a function in Golang and explore the benefits of doing so. What are Named Return Values in Golang? In Golang, a function can return one or more values. By default, the return values are anonymous and are returned in the order in which they are declared. However, Golang allows developers to name ... Read More
 
 
			
			2K+ Views
In Golang, functions can have named return parameters. This feature makes the code more readable and easier to understand. In this article, we'll explore named return parameters in Golang, their benefits, and how to use them. What are Named Return Parameters? Named return parameters are the values that a function returns, with their names specified in the function signature. By default, Golang functions return their values in the order they were defined. However, with named return parameters, developers can assign names to the returned values, making the code more readable. Example Here's an example of a function with named return ... Read More
 
 
			
			1K+ Views
In today's world of technology, compressing files has become an essential part of daily life. It not only helps to save disk space but also speeds up file transfers. However, at times, it becomes necessary to uncompress these files to extract the data inside. In this article, we will discuss how to uncompress a file in Golang, a popular programming language. Step 1: Importing the Necessary Packages Before we can start uncompressing files, we need to import the necessary packages. Golang comes with a built-in "compress" package that provides support for various compression algorithms. To uncompress files, we need to ... Read More
 
 
			
			318 Views
Checking Eligibility of TPP Students in Java Consider the following table for eligibility criteria of different companies for appearing in interviews: CGPA ... Read More
 
 
			
			861 Views
In this article, we will learn how to determine whether the installed JVM in your system is 32 bit or 64 bit. For this operation, we use the getProperty() method of System class, which helps in retrieving system property of specified argument. In computer architecture, 32 bit and 64 bit refers to those components that operate on data in 32-bit units and 64-bit units respectively. 64 bit machines are said to be faster and more secure compare to the 32 bit machines. What is JVM? JVM is Java Virtual Machine that is responsible for executing the byte code. It is ... Read More
 
 
			
			2K+ Views
When the sum of factors of a given number (after discarding the given number) is equal to the number itself is called a perfect number. The sum of these divisors is known as the aliquot sum. Therefore, we can say that a number is perfect if it matches its aliquot sum. All known perfect numbers are even. Problem Statement In this article, we will create Java programs to check if a given number is perfect or not. Let's try to understand the given problem through some examples: Example Scenarios: Input: number = 496 Output: 496 is a perfect number ... Read More
 
 
			
			300 Views
In Java, a collection is an object that allows us to group several numbers of objects as a single unit. The Collection interface is the root of the collection framework. We can perform various operations on collection like adding, removing, iterating, searching and retrieving objects. In this article, we will discuss Java programs to add data from the specified collection to the current collection with the help of addAll() method. Using addAll() method of Collection Interface The addAll() method of Collection interface adds data from a specified collection into current collection. It returns a boolean value, which is TRUE if the ... Read More
 
 
			
			311 Views
The sum of the nth squares series is a form of arithmetic progression where the sum of squares is arranged in a sequence with the initial term as 1, and n being the total number of terms. 12 + 22 + 32 + ... + n2 In this article, we will discuss a Java program to add the nth square series. But, before that, let's see an example scenario: Example Scenario: Input: num = 6 Output: sum = 91 It will be calculated as: 12 + 22 + 32 + 42 + 52 + 62 = 1 ... Read More
 
 
			
			512 Views
In Java, super refers to the parent class instance, and to inherit members of the super class to the child class, we use the extends keyword. Before writing a Java program to allocate and initialize super class members using a constructor, let's go through some concepts we are going to use in this article. What is Constructor? A Java constructor is a class member that initializes instance variables of a class. It is very similar to a method, but the difference is that methods can return a value, but a constructor does not return any value because it can't have any return ... Read More