Skip to main content

Primitive Types are Stored By-value

 

Java primitive types are stored by value, and that's important to understand because it affects the behaviour applications when we assign values from one variable to another. Let's look here. If I declare an initial variable called firstValue and I assign the value 100 to it, what's happening under the covers is that an area of memory is being allocated that's named firstValue and the value 100 is stored inside that memory. So now if I declare another variable, in this case, other value when I assign first value to it, again, I'm looking in an area of storage, I'm giving it a name otherValue, and when I make the assignment, the value 100 is being copied from firstValue into otherValue. And what that means is that there is a distinctly separate copy of that value 100 being moved over into otherValue. What that allows me to do then is that if I make modifications to firstValue, for example, assign the value 50 to it, that 50 replaces what's in firstValue, but it leaves the very well called other value completely untouched, right, and that's what I mean by being stored by value so that each primitive type variable has its own separate copy of the data.

Comments

Popular posts from this blog

Brief Overview of RPA

Brief Overview of RPA:     §   In short, it’s a way for machines to replace human workers in regular activities done across the organization.     §   It works on both Front End & Back End applications/operations.     §   BOT provides Virtual automation agents , it acts like MIMIC HUMANS .     §   BOT ’s available in Clouds/Servers     §   BOT is nothing but a configurable software set up, works only on rule-based triggers     §   It automates Non-Value –added works     §   It is a Sub Domain of BPMS (Business Process Management Software)

RPA Implementation Approach

RPA Implementation Approach: 1. Tool Selection o     Based on user requirements, features available in tools, you’ve to select TOOL from mentioned above         2. Process Prioritization o     After successful section of Tool, you’ve to consolidate & prioritize the all processes in current operation. Let’s start automating lowest first and most important to next

Types of Recording

Types of Recording: 4 types of recording modes are available Ø   Basic Ø   Desktop Ø   Web Ø   Citrix 2 ways of Recording Ø   Automatic Ø   Manual Basic – generates a full selector for each activity and no container, the resulted automation is slower than one that uses containers and is suitable for single activities. Desktop – suitable for all types of desktop apps and multiple actions; it is faster than the Basic recorder, and generates a container (with the selector of the top-level window) in which activities are enclosed, and partial selectors for each activity. Web – designed for recording in web apps and browsers (supported: Internet Explorer, Google Chrome), generates containers and uses the Simulate Type/Click input method by default. Citrix – used to record virtualized environments (VNC, virtual machines, Citrix, etc.) or SAP, permits only image, text and keyboard automation, and requires explici...