History and Development of Development Languages

Yash Ojha

Introduction

Programming dialects play the main role in the creation of various Software's. Request, and Webpages etc. Just due to existence of encoding languages today everything related to New Technology can be done. Including the various SOCIAL MEDIA sites that people use is a result of Programming Language, the Cell phones that people use inside our lifestyle is an excellent outcome of encoding as every IC in the circuit of the mobile phones are programmed credited to which it works.

The most important outcome of PROGRAM WRITING LANGUAGE is the creation of Operating Systems (Operating-system). OS is something without which we can not use our PC's or Laptop's or even our cell phones. OS acts as a basic for every one function of an device to work in short it provides an important system for the working.

If no coding languages were introduced then today it practically impossible for the visitors to use computers, mobile phones, servers, and various other activities. But thanks to the builders of the many types of Dialects that made peoples life very easy and mobile.

1

All about JAVA!

Java originated by James Gosling at Sunlight Microsystems in 1992 and was officially released in 1995. JAVA Technology is a programming language that is used for meeting the goals of current issues and opportunities in the present computing realm.

Java Virtual Machine (JVM): JVM is an Interpreter for JAVA programming language, i. e. , it's the only way to convert a Byte Code into machine terms. The Byte Code cannot be modified using any technique apart from the JVM. Therefore as I said above Byte Code somehow helps Java in being secure.

Java Runtime Environment (JRE): Everybody knows that that the significant problem with the encoding languages before JAVA was program dependency i. e. , if you want to run the code put together in OR WINDOWS 7 in Linux, this is not possible as for that we need a special compiler which works in Linux only. So to resolve this problem JRE was launched and became an integral part of java. Every Operating System have some essential data that are had a need to run java on that one OS. So in short JRE in the assortment of all those mandatory files had a need to run java on various OS's plus JVM.

Due to JRE today you'll be able to use the code written in some OS in any other OS.

So JRE made JAVA completely PLATFORM INDEPENDENT.

The byte code is packed into JVM using the Class Loader.

JIT (Just with time): JIT works as a verifier. It verifies the Byte Code first whether it is afflicted or not or whether it is holding some type of trojan in it or not. If found clean it forwards the Byte Code to the JVM for even more process.

JIT is completely in charge of the SECURITY of JAVA.

Let's see the entire process graphically.

A. java A. class

2

Now I'll show you a basic program in java with its output.

class Sample

public static void main(String. . . s)

System. out. println("Hello there World");

Let's discuss the primary() function.

The main function is made up of 5 things.

Access Specifier Function Name

public static void main() Parentheses

Access Modifier Return Type

Java Fundamentals

All programming languages have its own syntax and reserved keywords. JAVA also has these kind of language basic principles.

Basic fundamentals of java includes
  • Java Keywords
  • Data Types
  • Legal and Illegal Identifiers
  • Operators

Let's see every important at length.

  1. Java Keywords: Keywords are the words that convey special interpretation to the words compiler. These are reserved for special purposes and must not be used as normal identifier labels.
  1. Data Types: Data types are keywords are means to identify the type of data and exactly how much storage a variable needs to carry out a particular operation.
Data types are divided into two types
  • Primitive Data Types (8 types)
  • Non Primitive Data Types (End user Defined 3 types)
  1. Legal and Illegal Identifiers: Identifiers are blocks of an application and are being used as the general terminology for the labels given to different parts of the program viz. variables, objects, classes, function, arrays etc.

3

  1. Operators: The functions being completed are symbolized by providers. The operations (specific responsibilities) are symbolized by providers and the objects of the operation are referenced as operands

Classes in JAVA

Class is a collection of things of similar types of objects. Objects are nothing but a buffer or a location and are defined by something which have some property and behaviour.

In java things are created in the HEAP Memory inside the Java Virtual Machine.

Syntax for creating an object in java

Class name object name=new course name();

new is a keyword of java which when used creates an object in the HEAP. Now if we use the new keyword an area in created in the HEAP ram inside the JVM for the thing at runtime.

When we printing the reference variable of some class then it prints 3 things:

  1. Class name
  2. "@" symbol
  3. Hash code

Graphical representation of HEAP and other ram areas available inside the JVM.

4

Principal of Thing Oriented Coding (OOP)

The object oriented programming has been developed with a view to beat the draw backs of classic programming solutions. The OOP way is based on certain concepts that helps it to realize its goal of conquering the drawbacks of conventional coding approaches. There are 4 general principles of OOP
  1. Polymorphism
  2. Inheritance
  3. Abstraction
  4. Encapsulation (it's a part of abstraction)
  • Polymorphism: It's the ability for a message or data to be prepared in more than one form or it can merely be defined as one name used for most tasks which is used to speed up the compilation time.
  • Inheritance: That is a parent-child marriage between two classes. With this, the child category thing inherits some properties of the parent or guardian class subject.

Abstraction

Abstraction refers to the function of representing essential features without including the

background details or explanations.

Abstraction is split into two parts:

  1. Abstract Category: Abstract category can be used to specify a guideline.

Rules in abstract class:

  • All the task which we is capable of doing in a standard java class can also be performed within an abstract course.
  • In abstract school we can establish normal method as well as abstract methods.
  • It is not compulsory to have at least one abstract method in a category.
  • If a method is abstract then the category should be abstract.
  • We cannot instantiate (cannot create the object) of abstract class.
  • Abstraction is achieved using extends keyword.
  1. Interfaces: Software are clean abstract methods. A category implements an interface, thus inheriting the abstract methods of an interface. An program contains the behaviour that the course implements. The course that implements interface is abstract.

Syntax:

interface my;

declaration of methods;

5

Rules in Software:

  • We cannot instantiate of interface.
  • Interface are used to define the rules purely.
  • All the techniques of an program are by default public and abstract.
  • In circumstance of software we use the keyword implements.
  • If we identify any data member inside an program than by default it becomes static

and last.

  • Interface can be used to achieve Multiple Inheritance.

Packages

Packages is a collection of classes and interfaces. No class can exist with out a package included in it. This is actually the rule of OOP's. However when we start a category we don't always make a bundle in that course, so in this case the rule of OOP's is violated. So to avoid this issue JAVA has given an attribute in its compiler anticipated to which when we compile this program, the compiler automatically creates a package of the particular class during the compile time.

Command to compile the program with a package:

javac -d. p. java Name of the project

current directory is the same location as the course where the package deal is to be made.

Vacation spot. -d. is called the turning tool.

Program with a offer can be carried out by using the Command:

Java.

Exception Handling

When any abnormal condition that will come in a code which is often taken care of then that situation is known as Exception Handling.

For every exception there are exception classes and exception methods to handle that exception in java by default.

We can certainly cope with these unwanted exceptions by using try and get block.

Try is used to detect exceptions in a program and catch is used to handle that

The "finally" stop: If an exception occurs in an application then the try and catch block will be performed and then the program terminates in normal condition. But in circumstance of finally before the termination of program finally prevent also executes.

Syntax:

try----

catch----

finally----

6

Threads

Every process is divided into two categories
  • Heavy Weight Processes
  • Light Weight Processes

Heavy Weight Processes: These processes are those processes which stores a separate

area in Memory.

Light Weight Functions: These processes are those functions which occupy memory

under the heavy weight operations.

These light weight processes which occupy storage area under the heavy weight processes

are known as Threads in JAVA.

Basically there are two ways in which we can make a thread:

  1. By directly utilizing the runnable user interface.
  2. By internally utilizing the thread category in program runnable and extending thread school.

Multithreading

All of a program is called a thread and every thread defines a separate route of execution.

Java provides a building support for multithreading program. The multithreaded program has two or more parts that execute concurrently.

Priority which thread begins working first is decided by an application known as as Thread Scheduler which really is a program of the Operating System. It gives the priority randomly.

Synchronization

To steer clear of the corruption of data we use the concept of synchronization in threads.

When we discuss a single subject into multiple threads then your chance of data Corruption arises and to avoid this we need the concept of synchronization.

The keyword synchronized is applied on the function where in fact the variables are designated values. Due to the concept of synchronization only one thread executes at the same time.

Input/Outcome Stream

Streams are only a special type of buffer. In terms of JAVA channels are flow of bytes.

Benefits of I/O Stream:

  1. Execution time reduces.
  2. Performance Enhances.
  3. Network congestion chances reduces.
  4. We get bulk data at the same time.
Streams are divided into two types
  • High Level Stream
  • Low Level Stream

High level stream cannot be used alone, whenever we want to use a high level stream we must hook up it by a low level stream.

Stream

Byte Stream Persona Stream

Console Based mostly Unicode

Input Productivity Reader Writer

Stream Stream

Byte Stream

Source Stream Outcome Stream

  • FileInputStream FileOutputStream
  • BufferedInputStream BufferedOutputStream
  • DataInputStream DataOutputStream
  • ObjectInputStream ObjectOutputStream
  • ByteArrayInputStream ByteArrayOutputStream
  • PipedInputStream PipedOutputStream

8

Figure Stream

`

Audience Writer

  • File Reader Record Writer
  • Buffered Reader Buffered Writer

import java. io. *;

class Demonstration0

public static void main(String args[])

FileOutputStream fout=new FileOutputStream("a. txt");

PrintStream ps=new PrintStream(fout);

ps. println("hello");

ps. println("hey");

System. setOut(ps);

System. away. println("m");

This is a sample program of how to write a data file by coding in JAVA.

Serialization

Serialization is the process using which we can convert an object into a stream. If we have to use an object only one time and then we have to use the same object after a long time then we use the idea of serialization.

Features of Serialization:

  1. Only the object of that class can persist which implements serializable interface.
  2. If the father or mother course implements serializable program then you don't have for child school to use serializable.
  3. In case of serialization transient data members cannot persist.
  4. In circumstance of serialization static data participants cannot persist.
  5. Only the non-static data members can persist.

If we make any adjustable transient which means those variables are unwanted now and will get no ram in the HEAP inside the JVM.

Serializable interface is a type of marker interface. Marker program are those interface without any methods.

Also We Can Offer!

Other services that we offer

If you don’t see the necessary subject, paper type, or topic in our list of available services and examples, don’t worry! We have a number of other academic disciplines to suit the needs of anyone who visits this website looking for help.

How to ...

We made your life easier with putting together a big number of articles and guidelines on how to plan and write different types of assignments (Essay, Research Paper, Dissertation etc)