in Education by
I see an unfamiliar notation in the Android source code: *= For example: density *= invertedRatio; I am not familiar with the star-equals notation. Can somebody explain it? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
In Java, the *= is called a multiplication compound assignment operator. It's a shortcut for density = density * invertedRatio; Same abbreviations are possible e.g. for: String x = "hello "; x += "world" // results in "hello world" int y = 100; y -= 42; // results in y == 58 and so on.

Related questions

0 votes
    What is the meaning of overfitting?...
asked Jan 30, 2023 in Technology by JackTerrance
0 votes
    Explain the meaning of Code of Conduct. Please answer the above question....
asked Aug 14, 2022 in Education by JackTerrance
0 votes
    Elaborate the concept of Rights – (a) Meaning and Classification of Rights (b) Legal Rights (c) Human Rights Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    Explain the process of Judicial Review? (a) Meaning (b) Need (c) When and where it started (d) Indian context Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    Elaborate on the period of Detente. (a) Meaning (b) Initiatives are taken by superpowers to reduce tensions Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    Do state and nation convey the same meaning? Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    What is the literal meaning of ‘Swaraj’. Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Explain equality. (i) Meaning of Equality (ii) Facets of Equality (iii) Importance of Equality Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Explain Justice. (i) Meaning of Justice (ii) Types of Justice Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Explain the meaning of Public Administration. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Explain the meaning of regional organisation. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Spurred meaning in English Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    just wondering what it is. Edit: I know it's not a type of array but just a feature. So what ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    just wondering what it is. Edit: I know it's not a type of array but just a feature. So what ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 23, 2022 in Education by JackTerrance
0 votes
    Recently, I have started using Xcode 4 for developing iOS apps. In Xcode intellisense's autocomplete box, ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
...