Question

    Read the below passage and answer the questions Java is a most popular, object-oriented, widely used programming language and platform that is utilized for Android development, web development, artificial intelligence, cloud applications, and much more. In Java programming, the ______(19)_____  statement is used for returning a value when the execution of the block is completed. Access modifiers help to restrict the scope of a class, constructor, variable, method, or data member.

    Which is not a access modifier in java?

    A Public Correct Answer Incorrect Answer
    B Private Correct Answer Incorrect Answer
    C Protected Correct Answer Incorrect Answer
    D Default Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    There are four types of access modifiers available in Java:  1.      Default – No keyword required 2.      Private 3.      Protected 4.      Public

    Practice Next
    ×
    ×