answersLogoWhite

0

default it is public type

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What happens when no constructor function is declared in a class - in Java?

When any constructor is deffined in your class, the java compiler create a default no argument constructor for you. This constructor only have an invocation to the super class constructor (" super( ) ").


What is topleval class in java?

The top level class in Java is "Object." All other classes are subclasses of Object by default.


Which is java default access specifier?

There is no such thing as an access specifier in Java. There are access modifiers.The default access modifier if unspecified is to allow access to classes in the current package only, except within an interface where the default is 'public'


What is default object in java?

I don't think there is such a thing as a "default object". The default class, for inheritance purposes, is called "Object".


Are the private access specifiers in Java and C plus plus the same?

No.In Java, the private access modifier restricts member access to the class in which the member is declared. But in C++, private members are also accessible to friends of the class in which they are declared. The rough equivalent in Java would be package private access.Not that Java doesn't have access specifiers, it has access modifiers. When no modifier is specified, default access is implied, which is package private for classes and public for interfaces.


Final classes in java?

A class declared as final means that no other class can inherit from it.


In java all variables declared using a class are?

Reference variables


What is a default package in Java?

A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.


When do you declare a method or class abstract in java?

when overriding of a class or a method is necessary, they can be declared as abstract


Which class is available by default in java jkd 1.42?

All Java API classes are available by default in jdk 1.4.2 for Ex: classes inside java.lang, java.io etc.


What does a Java Boolean type variable declared but not yet initialized contain when its class is instanciated?

If it is a class or instance variable, it gets the default value of false. If it is a local variable (inside a method), it doesn't have a value until you explicitly set one.


In java by default all class variables are public protected or private?

The default (no qualifiers) is different from any of those three.