What is the result?

Given:class Caller {private void init () {System.out.println(“Initialized”);}private void start () {init(];System.out.println(“Started”) ;}public class TestCall {public static void main(String[] args) { Caller c – new Caller(); c.start (); c.init();}}What is the result?


What is the result?


An exception is thrown at runtime.

Initialized Started Initialized

Initialized Started

Compilation fails.

Correct Answer

The Correct Answer for this Question is

Compilation fails.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *