Question: Zadanie / Problem 1 - Operator new is used to: a ) defining new classes b ) creating objects of classes c ) assigning values

Zadanie/Problem 1-
Operator new is used to:
a) defining new classes
b) creating objects of classes
c) assigning values to variables
d) defining methods
Zadanie/Problem 2
After 'int a=3,b=a2,c=b>>3' the values of variables b and c are
a)12,0
b)5,1
c)5,0
d)12,1
Zadanie/Problem 3.
After executing instructions 'String s1="M", s2="H";' and 's2= s1;', the reference to string "M" is contained in variable(s):
a) none of them
b) both s1 and s2
c) s2
d)s1
Zadanie/Problem 4
After definition 'String[][] null, {"A", null,"U"},{"W"}};', out of the expressions 'a[0][1].length()' and 'a[1][0]. length()' correct ones are
a) only the second
b) both
c) none of them
d) only the first
Zadanie/Problem 5q,
Instruction 'String [] arr=new String [3] ; creates one local reference arr and
a) array of three references to object of class String and three object of this class
b) three object of class
String c) array of three references to object of class String d) nothing more
Zadanie/Problem 6-
Variables of type long occupy in memory:
a)4 bytes
b)8 bits
c)4 or 8 bytes, depending on platform
d)8 bytes
Zadanie/Problem 7
Reference this can be used only in
a) static functions
b) constructors, nonstatic methods and static functions
c) constructors and
nonstatic methods
d) constructors and static functions
 Zadanie/Problem 1- Operator new is used to: a) defining new classes

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!