Ways in which Java program is less likely to be compromised
Give two ways in which a Java program is less likely to be compromised than the same program written in C++.
Expert
In Java, Primitive and reference data types always passed by value while as in C++ referenced data types are passed by reference.
In Java, we have automatic garbage collection that doesn’t have the concept of Destructor and usage of finalize() is not recommended while have we have to explicitly rely upon destructors and deletete operator to free unused memory.
Java Virtual Machine (JVM): It is an idealized machine whose instruction set comprises of bytecodes. Java program is compiled to an equal bytecode form and performed on an interpreter that implements the JVM.
Aliases: It is a multiple references to a single object. Messages might be sent to the object through any of its aliases. The resultant state modifications will be detectable by all.
State the term XHTML?
Garbage collector: It is a daemon thread which recycles objects to which there are no extant references in a program.
Primitive type: Java's eight standard non-class types are the primitive types as: Boolean, byte, char, float, int, double, long and short.
Anonymous array: It is an array formed without an identifier. The anonymous array is generally formed as an actual argument, for example:// generate an anonymous array of integers. YearlyRainfall y2k = new YearlyRai
Stack overflow: Stack overflow takes place whenever too many items are pushed onto a stack with a finite or limited capacity.
What do you mean by rings present in CPU?
Virtual desktop: The name employed to explain a user's graphical working area in a window manager. The name arises in the early days of graphical user interfaces whenever it was thought that such would lead to `paperless offices'. This was anticipated
Actual argument: The value of an argument enacted to a method from exterior to the method. Whenever a method is called, the real argument values are copied into analogous formal arguments. The kinds of the actual arguments should be compatible with th
18,76,764
1949206 Asked
3,689
Active Tutors
1431138
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!