Skip to main content

Posts

Python Installation

Python has an in-built IDLE that is best for python beginners. 1) PYTHON IDLE INSTALLATION Using Python .exe file Python will be installed using two different ways 1) Offline using Python IDLE 2) Online using Jupyter 1)  Offline installation using IDLE:- Step1st:- We can Install Python easily go into www.python.org and click on downloads  and download python.exe file, double click it, and install it. https://www.python.org/downloads for window 7 and before windows 7 o/s:-  Python 2.7 version should be installed. After this version, we can install Python 3: Step2nd:- Open Python IDLE ( Integrated Development Learning Environmen t) By Default IDLE Provide Terminal mode which is for instant script execution for System administrator  step3rd:- Click on File---> New File Option---> Write Python Script print("Welcome in Python Script") print("It is a script-based programming language which was created by GUIDO VAN RASSUM") step4th:- Save this file using the .py ...

History & scope of Python

Python is a script based language which will be executed by the Python interpreter itself. The python script is easy to learn and a light-weight script as compare to other programming languages. A python script was developed by GUIDO VAN ROSSUM to create a device driver-based application initially. but now Python is complete technology that is used to develop System Software, Application Software , Data Science , Machine Learning , Interface Programming , Game Development, Electronic Software Implementation with IoT and Aurdino , Automation Programming for Software Testing. Python Script performance is best as compare to other languages means its performance is much better as compared to C, CPP, Java, PHP, and Another Programming language. Python script only focuses on a set of code .it not use code pattern and code structure. ........................................................................................................................................................

What is Java ? ,java introduction,Java definition, Java Fundamental

                    About Java:- Java is  a complete technology or platform,  which is used to create small scale to large scale application’s using Java Programming language, Java Development Kit and Java Frameworks. Java Technology Provide a complete platform to compile and execute the java program code using JDK and JRE . Java code converted into byte code by java compiler under JDK. Java Technology uses JVM (Java virtual machine ) to execute java byte code to any operating system hence Java is platform-independent but JVM dependent. JVM  is part of JRE. JVM is a subpart of JRE which is also called the virtual operating system of Java. In the developer machine, JDK and JRE both are required, but in the client machine, only JRE is required. About Java Programming language:- Java programming language is an Object-oriented programming language which is used to create a real-world based application for end-users. ...

How to install Java in machine?

1) To install Java Software in machine first we download Java set up from this link https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 2) Extract Zip file and Install them 3)  It provide complete environment of JDK and JRE under C:/Program Files/Java/JDK C:/Program Files/Java/JRE 4)  Set path of C:/program files/java/jdk/bin  Right click on my computer|My pc  ---> Properties  ----> Advances System Setting ---> Environment Variable---> Click on New Button (User Variable) Variable name:-    path Variable value:-  C:\Program Files\Java\jdk1.8.0_161\bin 5) click on OK,OK,OK Button JAVA SAMPLE Program import java.util.Scanner; class Swap {    public static void main(String args[])    {       Scanner sc = new Scanner(System.in);       int a,b;       System.out.println("Enter First Number");       a=sc.nextInt();...

What is Compiler, Interpreter, Linker, Loader, Assembler in a Programming language?

Compiler:-   It is an intermediate machine that is used to convert the complete set of code from one language to another using a data dictionary. A compiler is nothing it is a converter that is used to convert the source code to machine code according to technology. The compiler always will convert the code using a group of lines. C, CPP,  JAVA,  .NET these all use Compiler Interpreter:-   It is used to read the program code line by line and execute then show the result by the operating system. PYTHON,HTML,JS,PHP,RUBY these are languages use Interpretar. Interpreter based language is also called    Script-based language . Linker:-  It is used to link the program code from the same file or different file. all library functions, metadata, and other files also linked by Linker. it will execute before compilation. for example, if we create a method in one file and calling from another file then the linker will link both files then execute it...

What is Program and Programming language?

It is a set of instructions to complete the task. instruction can be mathematical, logical, conditional, and comparison based. PSEUDO CODE of addition program a=10 b=20 c=a+b, display c Programming language:- It is a set of codes to create a program practically and load into a compiler or interpreter . Software is a set of programs and programs will be developed by a set of codes hence programming language is used to develop a software application . Type of Programming languages:- 1 Based on Execution:- 1.1.1 low level:-  It will be executed directly under the operating system with no need to use any intermediate. Binary Code 1.1.2   middle level:-  It will be executed by Single Intermediate means compiler or interpreter to convert program code into machine code. C, CPP, HTML, Assembly code 1.1.3  high level:-  It will be executed by a minimum of Two Intermediate means multiple compiler and interpreter. Java,.NET, Objective-c, Kotlin, C#, VB,, Python, P...

How to create First "Hello World " Program in Java

1)  Check Java Environment Java software is installed in the machine or not, In the windows machine, we can check under c:/program files/java folder it should contain JDK and JRE both. JDK means Java Development Kit, It provides program compilation means convert java program code to byte code. JRE means Java Runtime Environment, It is used to Execute Java Byte Code to machine code using JVM (Java Virtual Machine), JIT (Just-in-time) Interpreter exist under JVM which is used to execute byte code result. If the Java environment is not set then install JAVA using JDK and JRE. 2)    Check the Java Environment path that it is set or not.  Open the command prompt and type javac , if javac will be described then the path is set otherwise the path is not set if javac not recognized internal or external command ... How we set java path:- Right click on mycomputer----> propeties  ---> Advance System setting ----> Environment Variable-----> New --->  ...