Special Offer! Black Friday + Cyber Monday Sale! Extra 20% OFF - Ends In Coupon code: HELLO20OFF
Increase your chances of passing the Oracle 1Z0-808 exam questions on your first try. Practice with our free online 1Z0-808 exam mock test designed to help you prepare effectively and confidently.
Which statement best describes encapsulation?
Given the code fragment:

Given:


Given:

Consider below code:
1. package com.udayan.oca;
2.
3. public class Test {
4. public static void main(String[] args) {
5. StringBuilder sb = new StringBuilder();
6. try {
7. for(;;) {
8. sb.append("OCA");
9. }
10. } catch(Exception e) {
11. System.out.println("Exception!!!");
12. }
13. System.out.println("Main ends!!!");
14. }
15. }
What will be the result of compiling and executing Test class?
© Copyrights FreeMockExams 2025. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (FreeMockExams). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreeMockExams.