stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
OOps Programming Concepts Flashcards | StudBud
Explore
/
OOps Programming Concepts
OOps Programming Concepts
10 terms
·
StudBud Administration
·
20 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Identify the corrected definition of a package
A package is a collection of classes and interfaces
A package is a collection of editing tools
A package is a collection of interfaces
A package is a collection of classes
2
Total constructor string class have?
20
3
13
7
3
Identify the infinite loop
All from the options
for(int i=0; ;i++)
for(int i=0; i<1; i--)
for(;;)
4
Number of primitive data types in Java are?
7
8
6
9
5
When an array is passed to a method, what does the method receive?
A copy of the array
The reference of the array
Length of the Array
Copy of First Element
6
What does the operator >>>> do?
Zero Fill left Shift
Zero Fill right Shift
Right Shift Operator
Left Shift Operator
7
What is the size of float and double in java?
64 and 64
32 and 64
64 and 32
32 and 32
8
In which of the following is toString() method defined?
java.lang.String
java.lang.Object
None from the options
java.lang.util
9
When is the object created with new keyword?
Depends on the code
At compile time
At run time
None from the options
10
Output of Math.floor(3.6)?
3
4.0
4
3.0