0% found this document useful (0 votes)
3 views

daksh java output

The document contains multiple outputs from various code executions demonstrating constructors for a Car class, arithmetic operations in a Calculator, animal behavior in a Dog class, geometric calculations for shapes, string manipulations, exception handling, and a final counter value. Each section indicates successful execution of the respective code snippets. Overall, it showcases different programming concepts and their implementations.

Uploaded by

YOGENDRA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

daksh java output

The document contains multiple outputs from various code executions demonstrating constructors for a Car class, arithmetic operations in a Calculator, animal behavior in a Dog class, geometric calculations for shapes, string manipulations, exception handling, and a final counter value. Each section indicates successful execution of the respective code snippets. Overall, it showcases different programming concepts and their implementations.

Uploaded by

YOGENDRA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

‭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‬

You might also like