answersLogoWhite

0


Best Answer

When the new operator is used, a new object is created, based on the specified class.

When the new operator is used, a new object is created, based on the specified class.

When the new operator is used, a new object is created, based on the specified class.

When the new operator is used, a new object is created, based on the specified class.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

When the new operator is used, a new object is created, based on the specified class.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What happen when a java keyword new is used in an application?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

How java use extern key word which is used in C plus plus?

No extern keyword in Java.


What is the use of try in java?

The try keyword is used in Java to handle problematic situations that are commonly known as "Exceptions" The try keyword is used in conjunction with the catch keyword. If any exception is thrown by code inside the try block, they will be caught and handled by the catch block. Ex: try { ... ... } catch (Exception e){ ... }


What keyword are used in java for exception handling?

The important keywords used in Java with respect to Exception Handling are: a. Throw - The "throw" keyword is used to throw exceptions from inside a method b. Throws - The "throws" keyword is used to signify the fact that the code contents within the current method may be throwing an exception and the calling method must handle them appropriately


Is super keyword is anologous to this keyword in java?

No. The keyword super is used to refer to the parent class instance while the keyword this is used to refer to the current class instance. You need to learn about Inheritance and Object creation using constructors to learn more about these keywords and their use


Is super keyword is analogous to this keyword in java?

No. The keyword super is used to refer to the parent class instance while the keyword this is used to refer to the current class instance. You need to learn about Inheritance and Object creation using constructors to learn more about these keywords and their use


Difference between super and this in java?

The keyword super is used to explicitly call methods/values from the parent class The keyword this is used to explicitly call methods/values from the current class


What are packages in java environment?

A package is used to group related classes. Each class in the group is identified by the "package" keyword, followed by some keyword for the group.


Why is a keyword class used before a java program?

Because you are creating a class - a class in the sense of OOP.


The Java keyword is used to declare a class as a subclass of another class?

class MyClass extends AnotherClass {}


What does a void method do?

In Java, this keyword is used to specify that the method has no return value.


What types of values can be thrown in java?

Only instances of subclasses of throwable can be used in conjunction with the throw keyword. In java all exceptions and errors are subclasses of throwable.


Can NullPointerException be used with ArithmaticException using throws keyword in java?

No. You cannot throw or catch Null pointer exceptions