Table of Content
Computer Languages
- Low Level Language
- It is written in binary code or machine code,which means it basically comprises of only two digits 1 and 0.
- Assembly Language
- It is a development on the machine Language,where instead of using only numbers.we use English words,names,and symbols.
- High Level Language
- When we talk about high level languages,these are programming languages,some prominent example are PASCAL, FORTRAN, C++ etc.
Introduction to Java
What is Java?
Developed in 1995, Java is a widely used computer language.More than 3 billion devices that run Java are owned by Oracle.Mobile applications (especially Android apps) are the use cases for it.Desktop programsInternet-based programsApplication servers and web serversGamesDatabase link with a ton of other stuff.
Java's History
The Java Languages Project was started in June 1991 by James Gosling and Patrick Naughton.The Green Team is a tiny group of solar engineers.It was first created for tiny embedded systems found in set-top boxes and other electronic appliances.It was originally titled "Green talk" and had a.gt file extension, according to James Gosling.It was then created as a component of the Green Project and given the name Ook.
High-level, object-oriented Java programming was first created in 1995 by Sun Microsystems. Because the Java Virtual Machine (JVM), which serves as an interpreter for Java bytecode, is installed on any device, Java programs can execute on it because it was intended to be platform-independent.
The following are some of Java's main attributes and ideas:
- Basic: Java was created to be simple to use and understand. It takes a simple approach to object-oriented programming and has a tidy syntax.
- Object-Oriented: Since everything in Java is an object, programming can be done in a modular and structured manner. Java is based on key concepts from object-oriented programming (OOP), including classes, objects, inheritance, polymorphism, and encapsulation.
- Platform-Independent: Java programs can run on any device with a JVM because they are compiled into bytecode. Java's "write once, run anywhere" feature makes it incredibly flexible and portable.
- Sturdy and Safe: Java's stringent compile-time and runtime checks aid in the early detection of faults and the avoidance of frequent programming errors. Strong security measures and automatic memory management (garbage collection) are some of its other characteristics.
- Multithreaded: Java's built-in multithreading functionality enables concurrent programming. This boosts responsiveness and performance by enabling applications to handle several tasks at once.
- High Performance:Just-in-time (JIT) compilation and other optimizations are used by contemporary JVM implementations, despite the fact that Java is an interpreted language, to achieve high performance that is on par with compiled languages.
- Rich Standard Library:Pre-built modules and classes for common tasks like I/O, networking, database connectivity, and more are available in Java's extensive standard library. This vast library encourages code reuse and lessens the need for developers to write code from scratch.
- Community Support:There are a lot of tools, tutorials, frameworks, and third-party libraries available to assist with development chores because Java has a sizable and vibrant developer community.
- Popular in Enterprise: Because Java is scalable, reliable, and maintainable, it is frequently utilized in enterprise environments for creating large-scale, mission-critical systems.
To begin writing Java code, you must first set up a development environment. This usually entails installing an Integrated Development Environment (IDE) like Eclipse, IntelliJ IDEA, or NetBeans, as well as the Java Development Kit (JDK). After that, you can create Java code, use the javac compiler to convert it into bytecode, and use the java command to execute it on a JVM.