in Education by
Which of these can be returned by the operator &? (a) Integer (b) Boolean (c) Character (d) Integer or Boolean I got this question in exam. My question comes from Literals & Variables topic in division Data Types, Variables and Arrays of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
Right choice is (d) Integer or Boolean Best explanation: We can use binary ampersand operator on integers/chars (and it returns an integer) or on booleans (and it returns a boolean).

Related questions

0 votes
    Which of these is returned by greater than , less than and equal to operators? (a) Integers ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these data type is returned by every method of OutputStream? (a) int (b) float (c) byte ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Modulus operator, %, can be applied to which of these? (a) Integers (b) Floating - point numbers ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    What is the value returned by function compareTo() if the invoking string is less than the string compared? ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    What is the value returned by function compareTo() if the invoking string is greater than the string compared ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which operator is used by Java run time implementations to free the memory of an object when it is no ... questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Decrement operator, −−, decreases the value of variable by what number? (a) 1 (b) 2 (c) 3 (d ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these is a super class of wrappers Double & Integer? (a) Long (b) Digits (c) Float ( ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these is a super class of wrappers Long, Character & Integer? (a) Long (b) Digits (c) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these packages contain classes and interfaces used for input & output operations of a program? (a) ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these transfer protocol must be used so that URL can be accessed by URLConnection class object? (a ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which operator is used to invert all the digits in a binary representation of a number? (a) ~ (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these literals can be contained in float data type variable? (a) -1.7e+308 (b) -3.4e ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
...