Q1- The statement to stop the execution of a construct(in java) is:-
Q2-Invoking a method by passing the objects of a class (in java) is termed as:-
Answers
Answer:
1. Break
2. call a method in another class
Answer:
The correct answer to the given question is:
1) Break statement
2) Call by reference
Explanation:
1) Break statement:
In Java, a break statement can be used to exit a function or halt a construct from executing. In computer programming languages like C, Java, Python, and others, we utilize these statements conditionally, meaning that we need to end the loop or just move on to the next loop if a given condition is met.
2) Call by reference:
When calling a function by reference, the address of the variable is passed as the real parameter. The Call by Reference method changed the original value. The value of this is the object itself when a function is used as an object method. Additionally to returning the function's output, invoke also returns its output. Therefore, calling a function with class objects supplied is known as a call by reference.
#SPJ3