About Solidity Programming Language

Solidity is an object-oriented high programming language used for implementing Ethereum-based smart contracts or dapps.The syntax is similar to Javascript and is statically typed which makes it quite understandable for most programmers.

Solidity is statically typed language.

Solidity  is influnced by C++,Python and javascript. Solidity filename extension is .sol

remix is popular IDE for solidity programming language. We recommend Remix for small contracts and for quickly learning Solidity.

Solidity is the main programming language for DeFi (Decentralized Finance).

 

How to Install Solidity in Windows?

To install solidity we minimum required windows 10, as only windows 10 provides built-in Linux Subsystem.    
Step 1: Go to  control panel > program > Programs and features > Turn Windows features on or off and toggle to 'Windows Subsystem for Linux'   
Step 2: restarts system and install “Ubuntu LTS” from Microsoft store and after installation set it up.    
Step 3: Open ubentue terminal and install necessary dependencies like cURL, Node version manager(NVM), NodeJS and Node Packet Manager(NPM).  \

1. Install cURL :    
sudo apt-get install curl    
curl --version

2. Install NVM:    
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash     
nvm --version

3. Install NodeJS    
nvm install node    
node --version    
npm --version

4. Install solidity compiler solc:    
npm install -g solc    
solcjs --version

Step 3:Congrats

How to Install Remix locally in Windows?


Step 1: Open official website https://remix-project.org/ and find Remix Desktop IDE and click on  on Get our Desktop App and download .exe file .    
Step 2: install .exe file and restart system.

Step 3:Congrats

Note: If you do not wish to install it locally, we may also use it online here https://remix.ethereum.org/

Purpose to develop Solidity Programming Language

Simple answer for constructing and designing smart contracts on Blockchain platforms. It's used to create smart contracts that implement business logic and generate a chain of transaction records in the blockchain system..

Key faeture of solidity

1. Smart Contract

JDK

JDK stands for Java Development Kit provide all the tools to work with java language. inside JDK contains JRE and JVM.

JRE: JRE stands for Java Runtime Envirnment. it provide an envirnment to execute the Java program. it is a kind of compiler and check program sytntax.

it internally contains JVM .

JVM: JVM stands for Java Virtual Machine, it is a software in the form of interpreter written in C language It is used to execute Java program. It basically works after the compiler generates a .class file, then  JVM interprete  .class file  to execute  Java program.

Java Program complete execution process

java  program always begin with the main function.

execution is done in two steps

Compilation process

Execution process in Detail

Why public static void main(String args[ ])

Rules:

Save:

class_name.java

Compilation:

javac class_name.java

Execution/Run:

java class_name

Features of Java

Frequently Asked Questions

Q1. What is Solidity?
Solidity is a statically typed programming language created in 2014–2015 by Gavin Wood.
Q2. Why name JAVA?
In the year 1991, James Gosling and his Team start a project. Their Team name was Green Team and from here Java history began. Inital name of the java is green talk with file .gt extension, further rename to OAK. Because OAK is the national tree of many countries (USA, FRANCE etc.) also there is a company registered with OAK name. So they start searching a unique name which does not exist and one day when they are in Indonesia island they ordered coffee a coffee got an idea to rename OAK to Java So, he discussed with their team member and they also like this name So, later renamed to Java with coffee
Q3. Syntax of java comes from which language?
The syntax is mostly derived from C and C++ .
Q4. Why learn Java language?
  1. Simple and easy to learn .
  2. Open source .
  3. Plateform independent .
  4. Secure .
  5. Embeded .
  6. Compiled and intrepreted .
  7. Roboust .
  8. Large library and framworks .
Q5. Is Solidity compiled or Interpreted?
Java is both compiled and interpreted.
Q6. In which language is a Solidity compiler written?
The very first Solidity compiler is written in C++ named as solc. Solc is the actual Solidity compiler. version format is X.Y.Z (Major.Minor.Patch). Solidity compiler is very diffent from other programming langauge like java, it is Commandline Compiler. So if you are using windows then you need to enable "Windows Subsystem for Linux" feature first to install it.
Q7. Which versioning Solidity follow?
Solidity versions follow semantic versioning. format: MAJOR.MINOR.PATCH MAJOR version when you make incompatible API changes MINOR version when you add functionality in a backward compatible manner PATCH version when you make backward compatible bug fixes
Q8. What apparoach compiler does follow to execute a program?
Java compiler executes the code from top to bottom.
Q9. Why Java is platform independent language?
Java compiler executes the code from top to bottom.
Q9. What can Solidity do?
Solidity === Smart Contracts.