Solidity Features

Solidity Features

Solidity Features | Why Solidity and Where it is used | Solidity vs Java

1) Solidity Features

Solidity is an object-oriented programming language, And each object has its own set of properties and behaviour, which makes it easier to organize and modularize the code.

Solidity is a high-level programming language and Statically typed which means you need to specify the datatype during the declaration eg: int a = 10, which makes the code more reliable

Its a curly bracket language means all the code is enclosed with in set of curly brackets { }

To terminate individual line it uses a semicolon ;

eg : int a = 10;

Why Solidity?

Solidity was created specifically for creating smart contracts on the Ethereum blockchain. Some of the reasons are as below

1) Widely used for smart contracts on EVM

2) Built-in security features : eg Reentrancy attack

3) Good community support

4)Object-oriented

Where is Solidity used?

Solidity is primarily used for creating smart contracts on the Ethereum blockchain, which is a decentralised, open-source blockchain platform for developing decentralised applications (dApps) and other blockchain-based systems.

Smart contracts are self-executing programmes that run on the blockchain and can be used to automate transaction and business logic execution. Solidity is the most popular language for writing smart contracts on Ethereum.

Solidity Vs Java Programming Language

Solidity and Java are two very different programming languages, each with its own set of use cases and target platforms. While Java is a powerful language with many applications, Solidity is specifically designed for writing smart contracts on the Ethereum blockchain, making it a valuable tool for blockchain developers.

Solidity

Java

Platform

Solidity is designed specifically for the Ethereum blockchain

Java is a general-purpose programming language that can be used for a wide range of applications on various platforms.

Programming Type

Solidity is a contract-oriented language that is used to write smart contracts,

Java is a general-purpose object-oriented language used for a variety of applications

Run Time

Solidity code is executed on EVM

While Java code executed on JVM

Security

inbuilt security features exist to prevent common vulnerabilities

Java does not have this feature built into the language itself.

Thank you!

Thanks for reading! You can find me here

Did you find this article valuable?

Support Ashok V by becoming a sponsor. Any amount is appreciated!