Answer:
Option(c) is the correct answer for the given question.
Explanation:
The method variable overrides the class variable name with same name The method variable overrides of the class variable name .
Following are the example in java language
public class Main
{
int b=90; // class varaible or instance varaible
void sum()
{
int b=34; // method having same name as class varaible name
b=b+10;
System.out.println(b); // display b
}
public static void main(String[] args) // main method
{
Main ob=new Main(); // craete object
ob.sum(); // calling method sum
}
}
Output:
44
In this we declared a variable 'b' as int type in class and override this variable in sum() function it means same variable name is declared in function sum() .
acquiesces ,destroys,alters are the wrong for the given question.
So overrides is the correct answer
Answer:
B: new ArrayList()
Explanation:
When dealing with Java syntax you always need to initialize an ArrayList object with its constructor. From the options listed the only correct option would be B: new ArrayList(). This would correctly initialize the ArrayList object but is not necessarily the recommended way of doing this. The truly recommended way would be the following
ArrayList<Thing> a = new ArrayList<Thing>()
Answer:
Because we can converse with others using stuff like social media.
Explanation:
because we can converse with others using stuff like social media.
You can use points for a question, you used ten for this one, and since I've answered it, I'll get half the points you used. Usually the more points you use for a question, the more points the person answering it will get, and more people might be interested in answering it more.