How is object created in java?

Answer Posted / akshay

Object is created following ways
1.Using NEW operator
2.Class.newinstance()

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of defining packages in java?

745


What is core java used for?

757


Difference between static synchronization vs. Instance synchronization?

835


Give few difference between constructor and method?

742


What are static blocks and static initalizers in java ?

781


What is constructor and its types?

797


What is static import?

856


How can you add and remove nodes in jtree?

818


Why do we need wrapper class?

746


Is set thread safe java?

707


What is connection class in java?

744


Can you explain the meaning of aggregation and composition

770


What is the purpose of the strictfp keyword?

848


Where will it be used?

1713


What are the steps in the jdbc connection?

774