Programming Articles - Page 120 of 2896

What is Padding in Neural Networks

Parth Shukla
Updated on 17-Aug-2023 16:37:13

671 Views

Introduction Padding is one of the most used concepts in neural networks while working with convolutional neural networks. It is a most known concept to every neural network engineer and deep learning engineer to efficiently extract useful information from the given dataset in deep learning. In this article, we will discuss padding, what it is, why we need padding in neural networks, what is the significance of the same, and how we can apply padding in neural networks with code examples. This article will help one to understand padding from scratch and apply it when necessary. What is ... Read More

Difference between Developer and Programmer

Md. Sajid
Updated on 17-Aug-2023 13:32:46

1K+ Views

The terms "developer" and "programmer" are sometimes used interchangeably in the field of software development; however, they might have specific consequences and responsibilities. While the two roles have considerable overlap, there are significant variations in their focus and skill sets. Read this article to find out more about Developer and Programmer and how they are different from each other. Who is a Developer? A developer is a professional who is involved in the full process of building software applications or systems in the context of software development. They are essential in converting ideas and needs into practical and efficient software ... Read More

Interesting interview question on hashCode and equals method

Shriansh Kumar
Updated on 17-Aug-2023 10:27:15

950 Views

One of the most interesting interview questions that I have encountered in my Java programming career is about the hashCode and equals methods. Interviewers always check whether the candidate knows equals() and hasCode() methods as they are the most important yet most confusing methods of the Java Object class. Both methods are used to check the equality of two or more objects. This article aims to provide some interesting interview questions related to hashCode() and equals() methods that will improve one's knowledge as well as skills. Java Interview Questions on hashCode() and equals() method When an interviewer starts questioning about ... Read More

Interesting and Cool Tricks in Java

Shriansh Kumar
Updated on 17-Aug-2023 09:59:56

329 Views

Java is a widely used programming language available nowadays. It serves to develop a variety of software including web and mobile applications. It is also preferable when it comes to developing a backend system. Java has made tremendous progress over the year that has changed the world. This is the reason why the demand for Java developers is still in the market. Being a Java developer, one might be interested in learning some cool tricks that can make the code more elegant, efficient and fun. In this article, we are going to share some useful tricks that we can use ... Read More

Mobile

Is there any equivalent to typedef of C/C++ in Java?

Shriansh Kumar
Updated on 17-Aug-2023 09:57:11

1K+ Views

We can find many similarities between Java and C/C++ programming languages in terms of syntaxes and features. But, there are several functionalities that have been omitted from Java like 'typedef'. If someone coming from a C/C++ background, must have heard the 'typedef' keyword, and often wonders, is there any equivalent to typedef in Java? In simple words, Java does not provide a direct equivalent to typedef. The creators of Java replaced this feature with classes. In fact, a class can do even more than a typedef can do. Replacement to typedef of C/C++ in Java? Before exploring the ... Read More

Java @Target Annotations

Shriansh Kumar
Updated on 23-Jul-2024 18:51:00

2K+ Views

When we start learning Java, we often wonder about symbols like @override and @inherited written within the code blocks. They are a special kind of tag termed as Annotations that can be applied to classes, methods, fields, parameters, and other elements of the code. The @Target annotation is one of the types of meta-annotations that specifies the defined annotation type applicable to which code block element. Don't get confused by these terms, we will clear all the doubts and confusion as we move forward in this article. The @Target Annotation of Java The first thing we need to understand is ... Read More

What is Iterable Interface in Java?

Shriansh Kumar
Updated on 17-Aug-2023 09:47:54

1K+ Views

In simple words, the iterable interface is a common interface that allows us to iterate over a collection of objects. It was first introduced with the release of JDK 1.5 and made available in 'java.lang' package. The Java Collection Framework extends this interface, hence all the classes available in this collection framework by default implement the iterable interface. In other words, the classes of collection framework such as ArrayList, TreeSet, TreeMap and HashMap are iterable. This article aims to explain the iterable interface of Java along with its use case. Iterable Interface in Java The only use case exhibited ... Read More

What is Interface Naming Conflicts in Java?

Shriansh Kumar
Updated on 17-Aug-2023 09:41:48

490 Views

In Java, interfaces serve two purposes pure abstraction and multiple inheritance. Generally, an interface consists of abstract methods and variables that define the behavior which a class can implement. If we create two interfaces that contain methods and variables with the same name, then interface naming conflicts may arise. However, it is not the only scenario that can cause this conflict, we are going to explore all the possible situations causing interface naming conflicts. Interface Naming Conflicts in Java Before heading to the interface naming conflicts, it is necessary to understand the abstract methods and how to create interfaces in ... Read More

Is there any difference between int[] a and int a[] in Java?

Shriansh Kumar
Updated on 17-Aug-2023 09:39:59

858 Views

Array is a linear data structure that is used to store a group of elements with similar datatypes. It stores data in a sequential manner. Once we create an array we can't change its size i.e. it is of fixed length. There are various ways to create an array named 'a[]' of type integer including 'int[] a' and 'int a[]'. But, the question that pops up here is that is there any difference between these two syntaxes and which one is preferable. Stick with us till the end of this article to find out the answer to these questions. How ... Read More

How to iterate over Columns in Numpy

Tapas Kumar Ghosh
Updated on 16-Aug-2023 16:15:40

2K+ Views

The name Numpy stands for Numerical Python. It helps to solve the mathematical operation on an array. In Python, we have some built-in functions such as nditor(), T(), array(), shape[], and apply_along_axis() that will be used to iterate over columns in Numpy. Syntax The following syntax is used in the examples- nditer() The NumPy module contains this built-in function for iterator objects. T() This function refers to transposing of the index in a column dataframe. array() This is a built-in function in Python that creates the array. An array is defined by collecting the items of ... Read More

Advertisements