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

How do you get the length of a string in java?

766


What is the importance of hashcode() and equals() methods?

813


Give an example of call be reference significance.

828


Why collection doesn’t extend cloneable and serializable interfaces?

901


Can a static class have a constructor java?

756


What are serialization and deserialization?

1001


What is method with example?

811


What is re-factoring in software?

828


How to compare two strings in java program?

864


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

775


What is difference between word and integer?

831


What is the use of coding?

748


What is scope & storage allocation of static, local and register variables? Explain with an example.

827


What is formatted output in java?

741


What are the advantages and disadvantages of reference counting in garbage collection?

807