Q1. what is java?
Q2. Advantages?
Q3. Disadvantages?
What is Java?
-in simple terms, it is a programming language.
-originally developed by James Gosling at Sun Microsystems in 1995
-it can be used by 2 types of people.
-it is an Object-Oriented Programming Language.
-platform-independent i.e. OS(operating system) friendly such as -windows, mac etc. OR it follows WORA protocol i.e. Write Once, Run Anywhere.
-to run any java program you need 3 basic tools
- Operating System
- JDK
Editor/IDE
Developers:-building or developing the applications
Testers:-test the application by writing test automation code
-it can be categorized into 2 types
- core java-(developer, tester)
- advanced java(developer, not mandatory for testers)
-IDE(Integrated Development Environment) is majorly used to build applications such as IntelliJ, Eclipse IDE etc.
Advantages?
- Object-Oriented- everything is an object thus it can be easily extended
- Platform Independent- OS/platform friendly, byte code is distributed over the web and interpreted by the JVM(Java Virtual Machine) on executer's platform.
- Simple- understanding of the basics of java such as OOP Java can help one tap into advanced topics.
- Secure- authentication techniques are based on public-key encryption, protection from virus and tampering
- Robust- compile-time error checking and runtime checking
- Multithreaded- run multiple tasks simultaneously which allows the developers to construct interactive applications that can run smoothly
- High Performance- use of JIT(Just In Time) compiler improve performance
- Distributed- able to access files by calling the methods from any machine on the internet
Disadvantages?
- Performance- take much longer time to run compared to C/C++
- Memory- java Programs run on top of JVM. Thus it consumes more memory
- Cost- hardware cost increases since the memory and processing requirement is higher
- Garbage Collection- programmer does not have any control over garbage collection since it does not provide functions like "delete()" etc. But one can call the "System. gc( )" method explicitly in order to inform the JVM to run the garbage collector.
Top comments (0)