java

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: 899604
Joined: Mon Aug 02, 2021 8:13 am

java

Post by answerhappygod »

java
Java 1
Java 1 (67.14 KiB) Viewed 49 times
QUESTION 13 Which of the following is the correct onstructor overloading. O A. class Hospital private int doctors, nurses; private double salaries; public Hospital(int doctors, int nurses) { doctors = doctors; public Hospitalint doctors) { this. doctors= doctors; } public Hospital(double salaries) { this.salaries= salaries nurses = nurses, } } O B. class Hospital private int doctors, nurses, private double salaries, public Hospital1(int doctors, int nurses) { this.doctors = doctors; this.nurses = nurses; } public Hospital2(int doctors) { this. doctors=doctors; } public Hospital3(double salaries) { this.salaries= salaries }} O c. class Hospital { private int doctors, nurses, private double salaries, public Hospital(int doctors, int nurses) { this.doctors = doctors; this.nurses = nurses; } public Hospitalint doctors) { this. doctors= doctors; } public Hospital(double salaries) { this.salaries= salaries }} O D. class Hospital { private int doctors, nurses; private double salaries; public Hospital(int nurses) { this.nurses = nurses; } public Hospital(int doctors) { this. doctors= doctors; } public Hospital(double salaries) { this. salaries= salaries }} QUESTION 14 Why is Java a platform independent language? O A. Java language was developed in such a way that it does not depend on any hardware or software due to the fact that the compiler compiles the code and then converts it to platform- independent byte code which can be run on multiple systems. The only condition to run that byte code is for the machine to have a runtime environment (JRE) installed in it. O B. Java language was developed in such a way that it does not depend on any hardware or software due to the fact that the compiler compiles the code and then converts it to platform- independent byte code which can be run on multiple systems. O C. Java language was developed in such a way that it does not depend on any hardware or software due to the fact that the compiler compiles the code first O D.Java language depends on any its runtime environment (JRE).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply