Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Java
« Previous
Next »
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
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲