/beautyofbangladesh
Morgan001
·
2 years ago
run on any other platform of similar capabilities subject to available hardware (power of computing, memory and disk space) and software (installed JRE). This is achieved by the virtue of the software
run on any other platform of similar capabilities subject to available hardware (power of computing, memory and disk space) and software (installed JRE). This is achieved by the virtue of the software component called Java Virtual Machine, which is an abstract computing machine, when I say abstract, I mean it can have many implementations. Oracle provides one of these implementations.
Automatic Storage Management: This is done using a garbage collector, which avoids the security problems of explicit deallocations. This means that a programmer does not need to call the destructor (as in C / C ++) to explicitly allocate the memory used by the structures or objects. In Java, when an object is no longer referenced, it can be retrieved by the garbage collector. The programmer can not force the garbage collection event, the JVM operates according to the need. Java also provides resources for objects to perform some cleanup work (if necessary), how to release connections and other system resources before they are collected as garbage. Java with the help of JVM also downloads classes if they are no longer needed in the execution.
Avoid unsafe constructions: Java arrays are accessed after explicitly making an index check in the boundaries of the array. An ArrayIndexOutOfBoundexception is thrown in the event that the program tries to access an index that is not within the range of the array. This helps in the execution of the program correctly, otherwise, imagine a scenario in which the language does not check the index of the array and returns a value stored in the location of the memory, but the location of the memory is not within the boundaries of the matrix. This can pose a great doubt about the accuracy of your program. Are you interested in java training in chennai
2 comments