answersLogoWhite

0

An action that a Java object can perform is called a method. Methods define the behavior of an object and can manipulate its internal state, perform calculations, or interact with other objects. They are defined within a class and can take parameters and return values, allowing for dynamic interactions and functionalities within the program.

User Avatar

AnswerBot

4w ago

What else can I help you with?

Related Questions

What is a java object?

A java object is a collection of methods and properties defined in the Java programming language.


Java null pointer exceptions?

A null pointer exception in java comes when you are trying to perform any action on an object that isnt initialized/has a value i.e., is a NULL Value Ex: private String s; //declare a string if(s.equals("test")){ //do something.. } You will get a null pointer in the if condition because you are checking a value that is null which is not allowed..


What language is completely object oriented c plus plus or java?

Java is the complete object oriented Programming Language as every thing in java is an object,


Can you initialize an object without constructor in java?

No. if you wish to create an object that you plan on using in a java program then the answer is NO. You cannot initialize an object of a Java class without calling the constructor.


Why java is certifiction?

java is a object oriented langage,that is indepentant platform. java is full object oriented language. java is access any operating system.so java is good certification of program in runtime environment.


Why do you require a object in java but not in C?

Because Java is an object-oriented language and C is a procedural language.


Is there class name as object in java?

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


Did java oriented language works on object?

Java is an object oriented language, and it works with classes and objects.


What is the Object class parent?

Object is the topmost class in the Java Class hierarchy. There is no Class above Object. All classes in Java are implicitly derived from Object.


Can a noun perform the action of a sentence and can be replaced by a pronoun?

Yes, a noun can perform the action of a sentence as the subject or object. It can be replaced by a pronoun like he, she, it, etc., for smoother flow and to avoid repetition in the sentence.


Why java is called truly object oriented language?

because java supports three main pillars.....(inheritance encapsulation and abstraction)..... and everything in java is OBJECT......


What is meaning Serialize in java?

Primary purpose of java serialization is to write an object into a stream, so that it can be transported through a network and that object can be rebuilt again. When there are two different parties involved, you need a protocol to rebuild the exact same object again. Java serialization API just provides you that. Other ways you can leverage the feature of serialization is, you can use it to perform a deep copy. Why I used 'primary purpose' in the above definition is, sometimes people use java serialization as a replacement for database. Just a placeholder where you can persist an object across sessions. This is not the primary purpose of java serialization. Sometimes, people say that java serialization is used for storing (to preserve the state) an object and retrieving it. They use it synonymously with database. This is a wrong perception for serialization.