Preview

Computer Application Java Notes Class 10

Good Essays
Open Document
Open Document
7765 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Computer Application Java Notes Class 10
ACTUAL PARAMETER | FORMAL PARAMETER | A) | PARAMETER THAT APPEARS IN FUNCTION CALL STATEMENT IS KNOWN AS ACTUAL PARAMETERExp. int y = ob.sum (m, n); | A) | PARAMETER THAT APPEAR IN FUNCTION DEFINATION IS KNOWN AS FORMAL PARAMETERSExp. void sum(int a, int b) | B) | THIS IS USED TO PASS VALUE | B) | THIS IS USED TO RECEIVE VALUE | | | | | WHILE | DO WHILE | A) | WHILE LOOP WILL NOT EXECUTE AT ALL IF THE CONDITION IS NOT SATISFIED | A) | BUT DO WHILE CONTINUE ATLEAST ONCE | B) | CHECKS THE CONDITION FIRST AND THEN THE EXECUTION BEGINS. IT IS KNOWN AS ENTRY CONTROL LOOP | B) | IT CHECKS AFTER EXECUTING THE LOOP ONCE. IT IS KNOWN AS EXIST CONTROL LOOP. | | | | | CALL BY VALUE | CALL BY REFERENCE | A) | IN CALL BY VALUE THE METHOD CREATES NEW SET OF VARIABLES. (Formal parameters) TO COPY THE VALUE OF ACTUAL PARAMETERS AND WORK WITH THEM | A) | IN CALL BY REFERENCE THE REFERENCE OF ACTUAL PARAMETER IS PASSED ON TO THE METHOD AND NEW SET OF VARIABLE IS NOT CREATED. | B) | ANY CHANGE IN FORMAL PARAMETER IS NOT REFLECTED IN ACTUAL PARAMETER | B) | ANY CHANGE IN FORMAL PARAMETER IS REFLECTED IN ACTUAL PARAMETER | C) | PREMITIVE DATATYPES ARE PASSED BY CALL BY VALUE | C) | REFERENCE TYPES ARE PASSED BY CALL BY REFERENCE. | | | | | PURE FUNCTION | IMPURE FUNCTION | A) | A PURE FUNCTION DOES NOT CHANGE OR MODIFY THE STATE OF THEIR PARAMETER RECEIVED | A) | A FUNCTION THAT CHANGE THE STATE OF ARGUMENT RECEIVED IS KNOWN AS IMPURE FUNCTION | B) | RESULT DEPEND ON ARGUMENT RECEIVED | B) | RESULT DEPENDS UPON THE MODIFICATION OF ARGUMENT RECEIVED | | | | | IMPLICIT | EXPLICIT | A) | Automatic conversion of one data type into another without users intervention | A) | Conversion of one data type into another according to users choice. | B) | No loss of data | B) | Their may be a loss of data |

Advantages of Constants
( final int MAXMARKS=600; )
The Keyword final makes a variable as constant,
Whose value cannot be

You May Also Find These Documents Helpful

Related Topics