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 you write a java class that could be used both as an applet as well as an application?

511


Mention a package that is used for linked list class in java.

516


What are the data types supported by java? What is autoboxing and unboxing?

539


How do you escape in java?

570


Can final class have constructor?

490






What is the purpose of main function in java?

528


Differentiate between class and structure.

618


Why java is object oriented?

579


What is java oops?

549


What is a linkedhashmap java?

539


What is a lambda expression ? What's its use ?

558


Is there any difference between synchronized methods and synchronized statements?

567


How do you replace all in word?

516


Why are getters and setters used?

561


Differentiate between a class and an object.

556