Question: . In java, the object will be deallocated because .......... there are no references to it. there is no message to send to it. there

. In java, the object will be deallocated because ..........

there are no references to it.

there is no message to send to it.

there is no value to pass to it

there is no method defined for it.

---------------------------------------

Which of these is valid declaration for the main method?

public void main(){........}

public static void main(String args[]){........}

static public void main(String) {........}

public static int main (String args[]){........}

----------------------------------------------

The modier .......... designates that the identier is an instance constant.

public

private

final

static

--------------------------------------------

The method cannot be dened in the same class with the method

public double getInfo(String item){... }

public String getInfo(double item){... }

public double getInfo(int item){... }

public int getInfo(String item){... }

public double getInfo(String item, int x){... }

------------------------------------------------------

The default modifier restricts access to within a class?

-------------------------------------------------------------

Class Scanner is in package java.lang?

--------------------------------------------------------------

A default constructor is a constructor that can accepts more than one argument but has no statements in its body?

----------------------------------------------------------------------------------

The output of the following code is 30

int T[]= { 10, 20, 30, 40, 50 };

int a = 1, b =2;

System.out.println(T[ a + b ]);

?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!