stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Duplicate of OOP-Encapsulation-Inheritance-Static Members Flashcards | StudBud
Explore
/
Duplicate of OOP-Encapsulation-Inheritance-Static Members
Duplicate of OOP-Encapsulation-Inheritance-Static Members
13 terms
·
StudBud Administration
·
1 play
Imported from external platform
Flashcards
13 cards
F
Practice quiz
P
Host live
L
Questions
13
Answers
1
What is encapsulation?
Using methods within an object.
Using methods within a class, not outside
Hiding the necessary methods in a class
Hiding information details and protecting data and behavior of the object
2
To extract part of a string?
substring
char at
concatenate
length
3
With the help of static import, we can access the static members of a class directly without any object
True
False
4
Can we Overload static methods in Java ?
Yes, you can overload a static method in Java.
None of the above.
No, there will not be any Run-time Polymorphism happening.
Yes, you can but you have to implement <Liquid Crystal>
5
What is method overloading?
Same name, different parameters
Method has too many code
Same parameters different names
Too many methods in a class
6
Why do we use while loops in Java?
To break out of some block of code
To repeat some code while a condition is true
To repeat something for a fixed number of times while a condition is TRUE
To break some code while...
7
When we create an object, we can access its methods and variables by using the dot operator (.)
False
True
8
Where is the string pool stored?
stack
heap
9
What are the four OOP concepts in Java?
Encapsulation, Inheritance, Abstract, Pollyanna
Encapsulation, Inheritance, Abstract, Polygraphism
Encapsulation, Inheritance, Abstract, Polymoly
Encapsulation, Inheritance, Abstract, Polymorphism
10
What is an 'object' in OOP?
An instance of a class
The process of inheritance
A class definition
A declaration statement
11
OOP Stands for Object Oriented Programming
True
False
12
In JAVA, static is a non-access modifier that is applicable for variables, methods and blocks
False
True
13
Cybertek is the best SDET course...
True
False