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 (79.65 KiB) Viewed 15 times
1. a) b) c) What is meant by encapsulation and polymorphism in OOP? Write a java program where this keyword can be used to invoke the current class constructor. What will be the output of the following Java program? public class EEE static boolean b; public static void main(String [] args) { } short tt = 42; if (tt < 50 && !b ) /* Line 7 */ tt++; if (tt> 50 ); else if (tt > 40 { tt = 7; tt++; } else --tt; ) /* Line 9 */ System.out.println(tt);
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply