why we use new keyword for object

Answer Posted / sunil sharma

To create a new memory location for an object

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of client-server application. The purpose of Client-Server Application. with description.

1871


through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?

2290


purpose of abstraction and interface

1745


Write a program to show polymorphism.

846


hi all, i need ur help in preparing a sql which performs scd2, i mean i have a scd2 mapping i need a sql which can give me same result as scd2 mapping, SRC table: cust_no, loc 01 abc 02 xyz TGT table: pm_ky cust_no loc current_flag 1 01 abc Y 2 02 xyz Y cust 1 has changed his loc to xyz then it loads into TGT table as below, pm_ky cust_no loc current_flag 1 01 abc N 2 02 xyz Y 3 01 xyz Y i need sql to get the above result, hope got me question, Any suggestion will be appreciate.. thanks, Vinod

1853


we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/

1804


what is the difference between an OS(operating system) and Framework?

1720


I'm new to ABAP. What is Module pool in SAP?

2305


Is the IT field raise again? What is the position of IT after 4 years?

1915


What is SOLID Principle in Programming Language?

875


what is log files in qtp what is use

1775


What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?

1659


Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)

939


5.Call by value and Call by reference with program?

2030


Colors specified with the notation

1987