Declarations and Access Control Logic
© examsiri.com
Question : 22 of 29
Marks:
+1,
-0
Place code fragments into position so the output is : The quantity is 420
Code Fragments
Place here update(int quantity, int adjust){
Place here
}
public void callUpdate(){
int quant=100;
Place here
System.out.println("The quantity is "+ quant);
}
Code Fragments
1. public int
2. quantity = quantity + adjust;
3. update(quant, 320)
4. public void
5. quant = update(quant, 320);
6. quantity = quantity + adjust; return quantity;
Go to Question: