Question

In: Computer Science

Match the following column A column B Comment. 1. java.util.Scanner Wrapper 2. length char[] myletters 3....

Match the following

column A column B

Comment. 1. java.util.Scanner

Wrapper 2. length

char[] myletters 3. final int x=10;

import java.io.* 4. catch

ArrayList 5.alpha

String Class 6.double

Switch 7.inputfile.close();

try 8.remove()

Constant 9.default

Keyboard Input 10.compare

Solutions

Expert Solution

The question data is as below:

Comment. 1. java.util.Scanner

Wrapper 2. length

char[] myletters 3. final int x=10;

import java.io.* 4. catch

ArrayList   5.alpha

String Class 6.double

Switch 7.inputfile.close();

try 8.remove()

Constant 9.default

Keyboard Input 10.compare

After Matching:

Keyboard Input 1. java.util.Scanner

Scanner class is used to read to imput form the keyboard.

Scanner sc = new Scanner(System.in);

String s = new sc.nextLine(); //Reading String

char[] myletters 2. length

length is the attribute used to measure the length of an array.

char[] myletters = new char[10];

int len = myletters.length;

Constant 3. final int x=0

The variable value which cannot be changed in the program once it is assigned. In java, finall variable value cannot be changed in the program.

try 4. catch

In java, the code that might throw exception is place in try blocl and if any exception is thrown then it will handled using catch black.

try{

int i=0;

int a =10/i ;

} catch(Exception e){

e.printStackTrace();

}

Wrapper 6. double

A Wrapper class is used to convert the primitive data types into its corresponding objects.

we can convert double datatype into Double class object.

double d = 250.5;

Double doubleobj = new Double(d);

import java.io.* 7.inputfile.close();

java.io package has methods to read input file and write output to a file. inputfile.close() also belongs to java.io/* package.

ArrayList 8.remove()

ArrayList class has a method remove() which is used to remove the elements in the ArrayList.

If we add pramater of index to remove() then element at index 'i' will get removed.

ArrayList<Integer> a = new ArratList<Integer>();

a.remove(2);

Switch 9. default

switch is used to compare a value against the list of values. If the given value does not match with any case in th swith, then default case will be executed.

Comment 10. compare

compare suit is used to audit and comment the changes in the document.

The only possible combination left is:

String Class 5. alpha

The only common point String class and Alpha class, both are extending Object class. i.e, String and Alpha are subclasses of Object.

If you have queries regarding this answer, please reach out through the comment section.


Related Solutions

Match the following terms in column 1 with their description or definition in column 2. Column...
Match the following terms in column 1 with their description or definition in column 2. Column 1. Column 2 Mitral Valve.                   the right atrioventricular valve Semilunar Valve.            the right semilunar valve Tricuspid Valve              the left semilunar valve Aortic Valve.                   the heart valves between the                                           atria and great veins                                           heart valve between ventricle                                           and great arteries                                           the left atrioventricular Valve
Match Column B Items with Column A Items ( match B is from A-i will be...
Match Column B Items with Column A Items ( match B is from A-i will be matched with column A) Column A ______Reagents used to prepare the nonMarkovnikov product ______Reagent used to prepare an epoxide _______Reagent used to carry out vigorous oxidation ______Reagent used to form dichlorocarbene ______Reagents used to convert alkynes to methyl ketones ____1,1-disubstituted substituents ______1,2- disubstituted substituents Column B a. KOH b. m-chloroperoxybenzoic acid c. hot alkaline Mn04- d.NaNH2 e. Vicinal f. HgS04, H2O / HgS04 g....
Match the term in column A with its description in column B. Column A Column B...
Match the term in column A with its description in column B. Column A Column B ___a. CCP modules 1. expressed in centrocytes and prevents apoptosis ___b. ICAM-1 2. associated with the development of swollen lymph nodes ___c. CR2 3. required to induce production of activation-induced cytidine deaminase ___d. BLIMP-1 4. expressed on B cells, follicular dendritic cells, and subcapsular sinus macrophages and binds C3d ___e. CD40 ligand 5. CR2-associated and needed for binding to C3d-tagged antigens ___f. Bcl-xL 6....
Match the term in column A with best definition in column B Column A Column B...
Match the term in column A with best definition in column B Column A Column B Glucose Autotrophs Carbondioxide Heterotrophs Light Phototrophs Denitrification Oxygen Aerobic Nitrate Anaerobic sulphate Type 1 settling blanket settling Type 111 settling discrete settling Type 11 settling untreated primary sludge Lateral treated secondary sludge solids trunk sewer Biosolids depressed sewer Lateral main sewer Inverted siphons marine
Match the terms in column A to the terms in column B: There is one extra...
Match the terms in column A to the terms in column B: There is one extra phrase in column B that do not match with any term in Column A. Column A Column B Entity Relationship diagrams 1)     A technique for identifying required classes and entities for any system. Brainstorming 2)     Diagrams widely for depicting business processes in industry Parallel deployment 3)     Application divided into view layer, logic layer, and data layer Three-Layer architecture 4)     The old and new systems run side by side...
Match Column A with Column B 1) Guarantor of another's debt primary wants to benefit him/herself...
Match Column A with Column B 1) Guarantor of another's debt primary wants to benefit him/herself a) Party detrimentally relies on oral promise 2) Contract that cannot be performed within one year b) Indicates a contract between the parties, indicates quantity, and is signed by the party to be charged 3) Promissory estoppel exception c) A promise to pay another's debt, grant of an interest in land, a contract that cannor be performed in one year, and sale of goods...
Centrifuge Parts (match the part in Column A with the one correct function in Column B)...
Centrifuge Parts (match the part in Column A with the one correct function in Column B) Column A 1. Rheostat ______ 2. Bucket _______ 3. Trunnion ring _____ 4. Brake _______ Column B A. sets spinning time B. speed control C. tube holder D. holds bucket E. allow for faster slow down time ? Types of Centrifuges (match the Centrifuge name in Column A with the one correct function in Column B) Column A 5. Cytospine 6. Horizontal head 7....
solve the system X'={2 2, 3 1}X+{t 1}. (2 2 in column, 3 1 in column)
solve the system X'={2 2, 3 1}X+{t 1}. (2 2 in column, 3 1 in column)
Match the economic concepts given in COLUMN A with its description in COLUMN B. Write down...
Match the economic concepts given in COLUMN A with its description in COLUMN B. Write down the question number and the correct letter next to it. E.g. 2.11 A COLUMN A COLUMN B 2.1 Production Possibility Frontier (PPF)    a.All people who live together and who make joint economic decisions or who are subjected to others who make such decision. 2.2 Cross elasticity of demand b. Monetary payments for the factors of production and other inputs bought or hired by...
Match the following 1 [Ar]4s1 A. Anion 2 a probability map for electrons B. Frequency 3...
Match the following 1 [Ar]4s1 A. Anion 2 a probability map for electrons B. Frequency 3 [Kr]5s24d105p2 C. Electrons 4 [Kr] 5s24d105p6 D. Photon 5 Number of unpaired electrons in Sc E. Ground State 6 Metals form these when they lose an electron F. Excited state 7 Electrons in the highest main energy level G. Quantized energy 8 A sphere-shaped orbital H. S orbital 9 Number of unpaired electrons in phosphorus I. Orbital 10 Tiny packets of light J. Electron...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT