Page 1 of 1

Please take time and answer it correctly and properly.

Posted: Tue Jul 05, 2022 10:27 am
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 16 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);