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