answersLogoWhite

0

Fields and methods.

Fields are variables defined at the class level, i.e., they are available for all methods.

Methods are the equivalent of functions / procedures, but they are defined for a specific class.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


What is the java file in java?

The java file has the actual JAVA code present in it,..i.e the entire coding is done in that file.. you can view it using any text editor.. After compiling it you get a class file of every class present in the java file When you open a class file in a text editor, you won't see anything that makes sence. You won't find the original code that you wrote in the java file. That is because a class file is a product of the compilation of a java file.


What is the need of java virtual machine when operating system is already present?

1.Java virtual machine is required to interpret .class files. 2.JVM makes the java as platform independent.


The actions in a java class are called?

The actions in a java class are called methods.


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


How do you call main class with in main class in java?

We can't call a class. We always call a method in java.


When java uses compiler?

What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).


What class begins java class hierarchy?

Class


The top most class in java?

All classes in java must inherit from the Object class


What is the way to get rid of Java lang no class deffound error?

To get rid of the Java lang no class deffound error, one must add the class or .jar file which contains this class into the Java classpath. When a Java class is run from the command line, one must add a dot (.)


Who makes java platform independent?

JVM makes Java Platform Independent.. It loads byte code(.class file) and Run it.


Is there class name as object in java?

Yes, the base class for all other Java classes is Object.