Difference Between Inheritance and Composition in Java

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 11:37:32

4K+ Views

In computer programming, the concept of reusable code refers to the utilisation of previously developed software in the construction of new software. Reusability of code is recognised as an essential component of productive functionality. Establishing associations between classes is one method that object-oriented programming uses to encourage this.In object-oriented programming, there are two primary ways to construct these relationships: inheritance and composition.In object-oriented programming (OOP), inheritance refers to the process through which an object can take on the properties of one or more other objects. In OOP, it is one of the most powerful concepts for establishing code reusability. When ... Read More

Difference Between Hive and HBase

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 10:38:07

2K+ Views

Hive and HBase are Hadoop-based Big Data solutions. These technologies serve different purposes in almost any real use scenario. When you log onto Facebook, you may see your friend's list, a news feed, ad suggestions, friend suggestions, etc. Twitter is similar.Apache Hadoop, along with other technologies we'll explore today, such as Apache Hive vs. Apache HBase, is how Facebook loads all of its messy data in a presentable manner. Apache Hadoop enables Facebook's two billion-plus daily users.Because Big Data systems are complicated, all technologies must be used together. Hive is recommended for analyzing time-series data. It can evaluate trends and ... Read More

Difference between Constructor and Method in Java

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 10:26:00

12K+ Views

Classes are the fundamental building blocks of Java. It is a programmable template that can be expanded upon, and it determines the form and characteristics of an item. One may say that a class is the most fundamental component of an object oriented programming language like Java. Each and every idea that will be put into action by means of a Java application must first be encased inside of a class. In object-oriented programming, the fundamental building blocks are called classes objects.Variables and methods are the building blocks of a Java class. Instance variables are the terms used to refer ... Read More

Difference Between Cold Booting and Warm Booting

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 10:14:57

11K+ Views

When a user presses the power button on their computer, it initiates the process known as "booting, " which loads and starts the operating system. Booting can also be thought of as a series of actions where the ROM of the computer is accessed in order to load the startup instructions. After that, the operating system is loaded from the disc that is now being used to boot the computer.A primary option for the boot disc is frequently the local hard drive. The process of booting the computer is finished when the operating system is loaded; at this point, the ... Read More

Find the Perimeter of a Circle in Swift

Ankita Saini
Updated on 28-Jul-2022 09:53:05

2K+ Views

This tutorial will discuss how to write a Swift program to find the perimeter of the circle.Perimeter of the circle is also known as the circumference of the circle. It is used to calculate the boundary of the circle. Suppose we want to fence our circular garden so with the help of perimeter we can calculate the total amount of fence required to cover the boundary of the garden. We can calculate the perimeter of the circle with the help of the radius or diameter, here, Radius − It is known as the distance from the center to a point ... Read More

Multiply Two Floating Point Numbers in Swift

Ankita Saini
Updated on 28-Jul-2022 09:40:01

750 Views

This tutorial will discuss how to write a swift program to multiply two floating point numbers.Floating point numbers are the numbers with fraction or numbers with decimal value for example 34.56, 987.23, 0.234, etc. In Swift, floating point data type has a wide range of values and can store much smaller or larger number as compare to Integer. Swift support two signed floating point number types that is Double and Float. Double is used to represent 64-bit floating point number and has precision of at least 15-decimal digit. Whereas Float is used to represent 32-bit floating point number and has ... Read More

Print Integer in Swift Program

Ankita Saini
Updated on 28-Jul-2022 09:26:11

2K+ Views

This tutorial will discuss how to write a swift program to print an Integer. Integers represents the number with no fractional component like 45, 980, -234, 24, etc. Swift supports both signed as well as unsigned integers in 8, 16, 32, and 64 bit. Here signed integer is represented by Int whereas unsigned integer is represented by UInt and their size is same as the current platform e.g if the platform is 32-bit then the size is Int32 or UInt32 unless you work with some specific size of the integer.SyntaxFollowing is the syntax for creating integer type variablevar x : ... Read More

Find Area of Square in Swift

Ankita Saini
Updated on 28-Jul-2022 09:18:24

3K+ Views

This tutorial will discuss how to write a swift program to find the area of square.A Square is a two-dimensional closed figure with four equal side and four equal angle. It can also have two diagonals of equal length. The area of the square is known as the space that is enclosed inside the boundaries of the square. Suppose we have a square study table now the area of the square helps us to find how much cloth we required to cover the top of the table. The area of the square is the product of its two side.FormulaFollowing is ... Read More

Difference Between Abstract Class and Interface

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 08:34:09

6K+ Views

An abstract class can contain both abstract and non-abstract methods, whereas an Interface can have only abstract methods. Abstract classes are extended, while Interfaces are implemented. Read through this article to find out the other differences between an Abstract Class and an Interface and how they are used in real programs.What is an Abstract Class?An abstract class acts as a template that stores the methods and data members of a program. You should use an abstract class when you expect that it will inherited by different sub-classes with common methods and fields.Abstract classes may or may not contain abstract methods, ... Read More

Difference Between getText and getAttribute in Selenium WebDriver

Kiran Kumar Panigrahi
Updated on 28-Jul-2022 08:13:54

10K+ Views

Selenium WebDriver is an automation tool that is used to automate the testing of web applications and make sure they work as expected. Automation means the programmer doesn't have to write testing scripts; Selenium can write test cases without any script.Selenium supports a wide variety of programming languages such as Java, Python, PHP, Ruby, C#, Perl, Scala, etc. which means Selenium can provide test cases in any of these languages. It supports all the popular browsers such as Chrome, Firefox, Safari, and Internet Explorer. Selenium is an open-source tool which makes it even more popular among developers.In this article, we ... Read More

Advertisements