Output
Default constructor called.
Car Info: Unknown Unknown 0
Constructor with one parameter called.
Car Info: Toyota Unknown 0
Constructor with two parameters called.
Car Info: Honda Civic 0
Constructor with all parameters called.
Car Info: Ford Mustang 2022
=== Code Execution Successful ===
Output
Calculator: Adding two integers
Result: 15
Calculator: Adding three integers
Result: 30
Calculator: Adding two doubles
Result: 10.0
AdvancedCalculator: Overridden method - Multiplying two integers
Result: 50
=== Code Execution Successful ==
Output
Animal constructor called.
Dog constructor called.
Buddy makes a sound.
Buddy barks. Breed: Golden Retriever
=== Code Execution Successful ===
Output
Circle Area: 78.53981633974483
Circle Perimeter: 31.41592653589793
Rectangle Area: 24.0
Rectangle Perimeter: 20.0
=== Code Execution Successful ===
Output
Inner Class accessing -> Hello from Outer Class!
Inner Class accessing -> Hello from Outer Class!
=== Code Execution Successful ===
Output
Original String: " Hello, Java World! "
Trimmed: "Hello, Java World!"
Uppercase: HELLO, JAVA WORLD!
Lowercase: hello, java world!
Length: 18
Character at index 7: J
Substring (7 to 11): Java
Contains 'Java': true
Replace 'Java' with 'World': Hello, World World!
Index of 'World': 12
Words in the string:
- Hello,
- Java
- World!
Equals (case-sensitive): false
Equals (ignore case): true
=== Code Execution Successful ===
Output
Enter a number to divide 100:
10
Result: 10
Enter an index (0 to 2): 5
Array Index Out of Bounds Exception: Index 5 out of bounds for length 3
This block always runs (finally block).
=== Code Execution Successful ===
Output
Final counter value: 3000
=== Code Execution Successful ===
Output
Output