Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

. 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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions