What is wrong with this Java statement?

int num = new int(5);


int is a primitive type in Java, not a class. We can immediately assign it the value of 5; there is no constructor to call, and no need to dynamically allocate memory.

Computer Science & Information Technology

You might also like to view...

The ascent of a character is:

a) the height of the character b) how high above the base line a character goes c) the vertical space between characters d) extra spacing above the character for accents.

Computer Science & Information Technology

Which of the following security models is a subject-object model that introduces a new element, programs?

A) Biba Integrity Model B) Clark-Wilson Model C) Chinese Wall Model D) Bell-LaPadula Model

Computer Science & Information Technology

Object-oriented programming _________ data and functions into _________ .

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

In planning a Web site what is one of the most important questions that a Web designer must answer?

A) What is purpose of Web site? B) What language will the Web programmer use? C) What is the Web site's size? D) What is the development budget?

Computer Science & Information Technology