What is the use of new keyword in java


Asked by admin @ in Computer Science viewed by 316 People


Explain the purpose of using a new keyword in a Java programming ​

Answered by admin @



Answer:

The Java new keyword is used to create an instance of the class. In other words, it instantiates a class by allocating memory for a new object and returning a reference to that memory. We can also use the new keyword to create the array object.

plz make me brainlist


Similar Questions

What were the new weapons used in world war 1

Asked by admin @ in History viewed by 299 persons

What new weapons were used in World War I?

In java declaring a class abstract is useful

Asked by admin @ in Computer Science viewed by 369 persons

In Java, declaring a class abstract is useful A.To prevent developers from further extending the class. B.When it doesn't make sense to have objects of that class. C.When default implementations …

Using java we can develop

Asked by admin @ in Computer Science viewed by 326 persons

Observe the below statements. i. Using java we can develop a Web Application ii. Using java we can develop a Desktop Application Which of the following statements is/are true? Both …

Which of the following is not keyword in java

Asked by admin @ in Computer Science viewed by 286 persons

Which of the following is not a keyword in java? A - staticB - BooleanC - voidC- private​

What was the new invention used for irrigation called

Asked by admin @ in Social Sciences viewed by 401 persons

What was the new invention used for irrigation called​

Which keyword is used to declare variable in javascript

Asked by admin @ in Computer Science viewed by 383 persons

The keyword used to declare a variable in JavaScript

Which command is used to make a new directory

Asked by admin @ in Computer Science viewed by 299 persons

Which command is used to create a file or folder​

The keyword break cannot be simply used within

Asked by admin @ in Computer Science viewed by 296 persons

The keyword ‘break’ cannot be simply used within:a. do-whileb. if-elsec. ford. while

How can the use of new technology in industry benefit

Asked by maham237 @ in Social Studies viewed by 301 persons

Workers can react to economic change quickly. Workers can identify economic emergencies. Workers can gain new knowledge and skills. Workers can make economic forecasts.

What term do we use to describe the new cells

Asked by maham237 @ in Biology viewed by 324 persons

What is the ultimate goal/purpose of mitosis ?

A keyword is used to replace

Asked by maham237 @ in English viewed by 406 persons

A keyword is used to replace a. Hard to spell words c. Words written backwards b. Confusing words or phrases d. All of these

Which system did the new government created under the constitution use?

Asked by maham237 @ in History viewed by 309 persons

A. a unitary system with all power concentrated in a central government B. a presidential system with a unicameral legislature C. a confederation with a better-organized central government than under …

How can the use of new technology in industry benefit workers?

Asked by maham237 @ in Social Studies viewed by 422 persons

How can the use of new technology in industry benefit workers? Workers can react to economic change quickly. Workers can identify economic emergencies. Workers can gain new knowledge and skills. …

Economists can use new technology to

Asked by wiki @ in Other viewed by 418 persons

O study data and patterns. O create and apply automation. O improve production and shipping. O increase demand and consumption.

How will the new plasmid be used to produce insulin

Asked by admin @ in Biology viewed by 264 persons

URGENT BRAINLIST  Scientists are now capable of genetically engineering bacteria to produce human insulin. This insulin is then used to treat humans with certain medical conditions. Part A: Briefly explain …

Most viewed questions in Computer Science


A programmer mistakenly writes gor instead of for

Asked by admin @ in Computer Science viewed by 19018 persons


Domestic data entry operator ncert book class 9 solutions

Asked by admin @ in Computer Science viewed by 15805 persons


Information technology code 402 class 9 solutions chapter 1

Asked by admin @ in Computer Science viewed by 10969 persons



Ncert solutions for class 8 computer chapter 1 computer system

Asked by admin @ in Computer Science viewed by 10401 persons


A scrum team works on a 4 weeks sprint

Asked by admin @ in Computer Science viewed by 8721 persons


Which of the following occupies more memory in c

Asked by admin @ in Computer Science viewed by 8135 persons



A database of motor vehicles has the base entity

Asked by admin @ in Computer Science viewed by 7840 persons


The network architecture can be termed as a mcq

Asked by admin @ in Computer Science viewed by 6485 persons


Cat5 and cat6 cabling refer to which reference model layer

Asked by admin @ in Computer Science viewed by 5788 persons



Class 7 computer chapter 3 questions and answers

Asked by admin @ in Computer Science viewed by 5691 persons


Choose the correct options about usability and user experience

Asked by admin @ in Computer Science viewed by 5474 persons


Which advocates daily team meetings for coordination and integration

Asked by admin @ in Computer Science viewed by 4980 persons



Which three security features match the database security level

Asked by admin @ in Computer Science viewed by 4970 persons


Which of the dbms package is not available

Asked by admin @ in Computer Science viewed by 4682 persons


________ aid a business grow and attain its objectives

Asked by admin @ in Computer Science viewed by 4486 persons