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.
Shallow copy: It is a copy of an object in which copies of each and every object's sub-components are not as well made. For example, a shallow copy of an array of objects would outcome in two separate array objects, each having references to similar s
Q : What is Logical error Logical error : Logical error: It is an error in the logical of a class or method. Such an error may not lead to an instant runtime error, however could have a noteworthy impact on overall program exactness.
Logical error: It is an error in the logical of a class or method. Such an error may not lead to an instant runtime error, however could have a noteworthy impact on overall program exactness.
For creating a thread explain the limit on per process.
Cascading if-else statement: A form of if-else statement in which all else-part (apart from the last) comprises of a further nested if-else statement. Employed to overcome the trouble of textual drift frequently related with nested if statements.
Classpath: The path searched by interpreter and compiler for class definitions. The class path might be set by a command-line argument to either, or through an environment variable.
Public interface: The members of a class prefixed with public access modifier. All these members are visible to each and every class in a program.
What are the restrictions implied on API functions?
Write down the properties exposed through ActiveX controls?
Native method: In native method, the method is written in a language other than Java, however accessible to a Java program. Native methods are far away from the scope of this definition.
18,76,764
1942780 Asked
3,689
Active Tutors
1419229
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!