Before JAVA
C, C++, pascal these are only the programing language was used before java, then had some problem what is
1.Platform dependencies(software + hardware = plateform)
Here developer need to create separate version for different systems. this was taken time, cost and maintenance.
2.Memory Management
language like c, c++ required programmers to manually manage memory.
if programmer forgot to free memory then
1.memory leack accurred
2.Program crashed
3.system become slow
3.Security Issue:
c, c++ allows direct memory access.
This could cause
1.Buffer overflows
2.Crashes
3.Security vulnerabilities
4.Internet was Growing
Around 1990s,, the internet started growing so developer need a language like without plateform dependencies so.
Who created java?
Java was created by james gosling, in 1991 at sunmicrosystem.
In early stage we called oak , instead of java
How java solved the program
In traditional language;
C Code
↓
Windows Compiler
↓
Windows Program
but in java :
Java Code
↓
Java Compiler
↓
Bytecode (.class)
↓
JVM(Java Virtual Machine)
↓
Any Operating System
| Problem Before Java | Java Solution |
|---|---|
| Platform dependent | JVM made it portable |
| Manual memory management | Garbage Collector |
| Security issues | No direct memory access |
| Internet applications difficult | Built-in networking support |
| Complex development | Simpler than C++ |
why java became popular:
because that is object oriented program
java support :
1.class
2.object
3.inheritance
4.Polymorphism
Strong Security
Java programs run inside the JVM.
advantages:
Memory safety
Better security
Fewer crashes
Rich Libraries
Java comes with libraries for:
Networking
File handling
Collections
Database access
GUI development
Java Impact
Java became one of the most successful languages in history.
Enterprise applications
Banking systems
Android apps (historically)
Web applications
Backend servers
Cloud systems
Big Data tools
Examples:
Amazon
Netflix
LinkedIn
java flow
English --[JDK(compiler)]-- byte code --(JIT compilar)--->0,1(binary)
JDK -- stands for Java Development Kit , which is used to find out syntax error and exception ,
JDK is Platform independent
after byte code all are consider as Java Runtime Environment
Java Runtime Environmen have Java Virtual Machine(jvm)
JVM have JIT Compiler
Top comments (0)