Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

6.) Which of these names violate the naming convention (capitalization) for obje

ID: 3711318 • Letter: 6

Question

6.) Which of these names violate the naming convention (capitalization) for object names? a.) Thislsokay b.) notokay c) Reallyok d.) notsoMuchOk e.) java f) savingsACcount 7.) Show a state-of-memory diagram after the following statements are executed Frame window1; Resident res1, res2; window1 new JFrame; res1 new Resident(); res2 - new Resident(); res1- res2; 8.) What method must be included in any standalone java application? 9.) For each expression, determine its result. Assume you have a string named str as below: String str - "EenyMeenyMineyMoe": a.) str.substring(0,6); b.) str.length(): c.) str.indexOf("ee"); d.) str.indexof("e"l; e.) str.substring(8, str.length()-1);

Explanation / Answer

Hi Dear,

Please find my code.

Q6.
   b), d), e), f)

8)
   main method

9)
   a) EenyMe
   b) 17
   c) 5
   d) 1
   e) yMineyMo

7) first res1 and res2 pointing different onjects in heap memory

after res1 = res2

res1 and res2 pointing to same memory