answersLogoWhite

0

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

15y ago

What else can I help you with?

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


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.


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


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

class MyClass extends AnotherClass {}


Why is a keyword class used before a java program?

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


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