these are java program.. just write the output of those code without running the program....I need the answer within 20

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

these are java program.. just write the output of those code without running the program....I need the answer within 20

Post by answerhappygod »

these are java program.. just write the output of those code without running the program....I need the answer within 20 minutes....it’s very urgent.
These Are Java Program Just Write The Output Of Those Code Without Running The Program I Need The Answer Within 20 1
These Are Java Program Just Write The Output Of Those Code Without Running The Program I Need The Answer Within 20 1 (47.75 KiB) Viewed 23 times
These Are Java Program Just Write The Output Of Those Code Without Running The Program I Need The Answer Within 20 2
These Are Java Program Just Write The Output Of Those Code Without Running The Program I Need The Answer Within 20 2 (47.09 KiB) Viewed 23 times
These Are Java Program Just Write The Output Of Those Code Without Running The Program I Need The Answer Within 20 3
These Are Java Program Just Write The Output Of Those Code Without Running The Program I Need The Answer Within 20 3 (30.32 KiB) Viewed 23 times
1. Write the output of these code block without running a) class Person { public Person () { System.out.println("hi!"); } public Person (String s) { this(); System.out.println("I am "+s); } public class Who extends Person { public Who () { this ("I am Tony"); } public Who (String s) { super(s); System.out.println("How do you do?"); } public static void main(String args[]) { Who w new Who (); } b) public class TestDemo { int m=5; public void some (int x) { m=x; } public static void main(String args[]) { new Demo (). some (7) ; } }

c) } class Demo extends TestDemo { int m=8; public void some (int x) { super. some (x); System.out.println (m); abstract class Base { abstract public void myfunc(); lic void another () { System.out.println("Another method"); public static void main(String args[]) { Abs a = new Abs (); a. amethod (); } public void myfunc() { System.out.println ("My Func"); } public void amethod () { my func(); } } public class Abs extends Base {

d) class TestChoose { public static void main(String args[]) { int n=2; while (n<=10) { boolean flag=true; int kl=2; while (kl<=n/2+1) { if (n%k1==0) { flag-false; break; } kl++; } if (flag) { } n++; System.out.println(n+" ");
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply