Question: Program Reading & fill in the blanks } } Java hw if you can give me all answer so that answer my question. give me

Program Reading & fill in the blanks

Program Reading & fill in the blanks } } Java hw if

you can give me all answer so that answer my question. give

}

}

Java hw

if you can give me all answer so that answer my question.

give me all answer.make sure the answer is 100% correct

thanks in advanced

1. Please fill in the execution result of the program in the blank: class People { String name: public People System.out.print(1); } public People(String name) { System.out.print(2); this.name = name; } } class Child extends People { People father, public Child(String name) { System.out.print(3); this.name = name; father = new People(name + ":F"); } public Child System.out.print(4): } public class test{ public static void main(String[] args) { new Childo; output is System.out.println(; new Child("mike"); output is } 2. Please fill in the execution result of the program in the blank: class MyString public String getString(Strings) { StringBuffer str=new StringBuffer(); for(int i=0; is.length():++){ if(i%2==0){ char c=s.charAt(s); str.append(e); } retun new String(str); } class { public static void main(String args[]) String s="ABCDEFG"; MyString ms=new MyString(: System.out.println(ms.getString()); output is System.out.println(s.substring(s.indexOf("CD").s.length()); output is } 3. Please fill in the execution result of the program in the blank: class MyObject { public static int static Var = 1; public int instanceVar = 1; public void increase { static Var += 1; instance Var += 1; public void print0{ System.out.println(static Var+"t+this instance Var); } } public class Test public static void main(String[] args) { MyObject ml = new MyObjecto: ml.printo: ml.increase(); ml.printo; output is MyObject m2 = new MyObjecto: m2 increase(); m2.printo: output is 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!