Please take time and answer it correctly and properly.
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);
Please take time and answer it correctly and properly.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am