Please take time and answer it correctly and properly.

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

Please take time and answer it correctly and properly.

Post by answerhappygod »

Please take time and answer it correctly and properly.
Please Take Time And Answer It Correctly And Properly 1
Please Take Time And Answer It Correctly And Properly 1 (81.42 KiB) Viewed 10 times
2. a) What is the role of default and protected access modifier in Java? b) What happens when a class with parameterized constructors and having no default constructor is used in a program and we create an object that needs a zero-argument constructor? c) Find out the error of the following Java code. How do you fix the error? public class Test { } public static void main(String[] args) { int x = getValue(); System.out.println(x); } public static getValue() { return 10; }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply