Question
A software developer is designing a banking application where each bank account object should restrict direct access to its balance variable to prevent accidental modifications. Instead, the application allows access to the balance only through specific methods like getBalance() and deposit(), which include validation checks to ensure that operations are secure and valid. Which object-oriented programming principle is the developer applying to achieve this data protection?
More IT Operating System Questions
- Which statement is FALSE for analog input module for PLCs?
- What is the phenomenon where a process spends more time paging (swapping pages between main memory and disk) than executing instructions?
- Which CPU scheduling algorithm can cause 'starvation', where longer processes may wait indefinitely because shorter processes are continually given priorit...
- What is the final value of x after the following C++ code snippet executes? int x = 10; for (int i = 0; i < 3; ++i) { x += i; ...
- A binary search function is returning -1 (not found) even when the target element is present in the array. The array is sorted. Which of the following is a...
- Consider: SELECT DEPT, AVG(SALARY) FROM EMP GROUP BY DEPT HAVING AVG(SALARY) > 50000; If EMP has: IT(60k,45k,70k), HR(55k,40k), Finance(80k) — which outpu...
- The following Python code intends to enforce that all `Worker` subclasses implement a `work` method. However, it's not working as expected. class Worker...
- What is the keyword used in Java to indicate that a class is inheriting from another class?
- Which of the following best describes the primary purpose of the Immediate Payment Service (IMPS) in the Indian digital banking ecosystem?
- In Oracle SQL, which operator is used to return rows from the first query that do not appear in the second query (equivalent to set difference)?
Relevant for Exams:
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)