Which of the following is not a return type?

Options
- boolean
- void
- public
- Button


CORRECT ANSWER : public

Discussion Board
about the BUTTON

is Button is a return type ? do you mean JButton?

Pradeep 02-11-2019 12:54 PM

java

public

shubham raj 10-12-2016 02:29 PM

Java

nice

Puja 12-1-2014 01:16 AM

Public

A class, method, constructor, interface declared public can be accessed from any other class. Fields, methods, blocks declared inside a public class can be accessed from any class belonging to the Java classes.

Public is a class that needs to be used to show the access type specifier through which a method accesses the variables and elements.

Due to class inheritance, all public methods and variables of a class are inherited by its subclasses.
Example:

The following function uses public access control:

public static void main(String[] arguments) {
// ...
}


Rohit Sharma 07-29-2014 05:13 AM

java

logical though

Avnish kumar 07-6-2014 03:11 PM

java

very nice

manoj 10-8-2013 10:22 PM

java

very nice

manoj 10-8-2013 10:21 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement