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

Can we make a constructor final?

554


What happens if an exception is throws from an object's destructor?

588


How do you sort a set in java?

522


How do you make a thread in java?

635


What is a protected class in java?

546






Is arraylist ordered?

567


Explain the importance of finally block in java?

570


What are different types of control structures?

495


how can you catch multiple exceptions in java?

543


What does the “static” keyword mean? Can you override private or static method in java?

637


List some oops concepts in java?

586


What is a buffer in computer?

518


What is finalize()? Is finalize() similar to a destructor?

546


How can we create objects if we make the constructor private ?

547


How many types of methods are there?

552