Question: 9. What are the two types of division in Java? _________________________________________ What determines when double division will take place? ________________________________ _____________________________________________________________________________ 10. Assume a custom
9. What are the two types of division in Java? _________________________________________ What determines when double division will take place? ________________________________ _____________________________________________________________________________ 10. Assume a custom table is being built for a 20-foot room. If the table becomes longer than 16 feet, the job is canceled and must start again. Whenever the method below is called, 2 feet are added to the table. Will this method prevent the need to cancel the job? _________________ public void setTablePlusTwo(){ table = table + 2; if (table > 16){ System.out.println(Job canceled.); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
