Java new Batch - Class 13- Java Buzz words and features - Part 3 (Robust Programming Language)

preview_player
Показать описание
You can learn Java with me as the Java Programming language is being made easily. It would take a period of minimum three months and maximum 6 months to master Java. I would recommend you to watch all my videos to crack any software interviews that would require Java Programming language as a primary skill.

Robust:
========
The java language is Strong.
The java language is healthy.

1. It is a Strongly Typed Programming language Language.
-Java is considered a strongly typed programming language because it enforces strict rules regarding how types (such as integers, strings, and objects) are handled and used in a program.
-In Java, variables must be declared with a specific type (e.g., int, String, double, etc.). Once a variable is assigned a type, it cannot be used in a way that violates this type.
-Java performs compile-time type checking. This means that type errors are detected during the compilation phase, before the program runs. If you try to assign a value of an incorrect type, it will cause a compile-time error.

2. It uses Garbage Collector Mechanism to destroy unused objects
Java Provides automatic garbage collection which takes care of the unused memory blocks that will not be used any more. And, it will automatically destroys the memory blocks just before completing the execution. And, the memory space will be cleaned making for the new execution.

Java uses a Garbage Collector (GC) mechanism to automatically manage memory by identifying and removing unused objects that are no longer referenced in the program. The primary purpose of the garbage collector is to free up memory and prevent memory leaks (i.e., when unused objects consume memory without being released).

3. It internally handles Exceptions with the Exception handling Mechanism.
Java has a robust Exception Handling Mechanism that allows developers to handle runtime errors (exceptions) in a structured way, ensuring that the program can recover from or appropriately respond to unexpected situations. The exception handling system in Java is one of its key features, designed to improve the reliability and maintainability of code by separating error-handling code from regular business logic.

4. As it is platform independent, it is called as Robust PL.
Java is often referred to as a robust programming language, and its platform independence is one of the key reasons for this classification. Java’s robustness refers to its ability to handle a wide range of errors effectively, and its platform independence plays a significant role in making Java reliable and adaptable across different environments.
Рекомендации по теме