Computer Application Java Notes Class 10

Topics: Java, Object-oriented programming, Data type Pages: 37 (7765 words) Published: August 22, 2013
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 changed during program execution
There are two big advantages to using constants:
i. They make program easier to read and check for correctness]

ii. If a constant needs to be changed (for instance an new tax law changes the rates) all you need to do is change the declaration. Don’t have to search through program for every occurrence of a specific number Advantages of Constants

( final int MAXMARKS=600; )
The Keyword final makes a variable as constant,
Whose value cannot be changed during program execution
There are two big advantages to using constants:
iii. They make program easier to read and check for correctness]

iv. If a constant needs to be changed (for instance an new tax law changes the rates) all you need to do is change the declaration. Don’t have to search through program for every occurrence of a specific number

| | | |
NON PARAMETERISED CONSTRUCTOR| PARAMETERISED CONSTRUCTOR| A)| CONSTRUCTOR WHICH INITIALISES INSTANT VARIABLES OF A OBJECT WITH DEFINITE VALUE READILY DEFINED IS KNOWN AS DEFAULT CONSTRUCTOR| A)| A CONSTRUCTOR CAN ALSO TAKE AN ARGUMENT SUCH CONSTRUCTOR ARE CALLED PC. PC ALLOWS TO INITIALISE THE VARIOUS DATA ELEMENTS OF DIFFERENT OBJECTS WITH VARIOUS VALUES WHEN THEY ARE CREATED| | | | |

BREAK| CONTINUE|
A)| IT STOPS THE EXECUTION OF THE LOOP BODY AND CAUSES TERMINATION OF THE LOOP.| A)| IT ONLY SKIPS THE CURRENT ITERATION AND DOESNOT CAUSE THE TERMINATION OF THE LOOP.| B)| IT BRING THE CONTROL OF EXECUTION TO THE STATEMENT FOLLOWING THE LOOP BODY| B)| IT BRING THE CONTROL OF EXECUTION TO THE STATEMENT AT THE BEGINNING OF THE LOOP FOR THE NEXT ITERATION WITHIN THE LOOP BODY.| | | | |

STRING| STRING BUFFER|
A)| ITS OBJECT HAVE FIXED LENGTH| A)| IT HAS THE PROVISION TO CHANGE THE LENGTH| B)| IT IS GENERAL APPROACH OF PROGRAMMING| B)| IT IS ADVANCED APPROACH OF PROGRAMMING| | | | |
SELECTION CONSTRUCT | ITERATION CONSTRUCT|
A)| IN THIS CONSTRUCT A STATEMENT...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Essay about Computer Application Class
  • Class 10 Paper Computer
  • Notes Java Essay
  • Essay on Computer Java
  • Chapter 10 Class Notes Essay
  • Applications of Computer Essay
  • Java Essay
  • Class 10 Maths Polynomials Notes Essay

Become a StudyMode Member

Sign Up - It's Free