Is it possible to create object with out its default
constructor? if possible how? else not possible? justify
Answer Posted / ravi
class C
{
void show()
{
System.out.println("hi");
}
public static void main(String args[])
{
C c=new C();
c.show();
}
}
we can create object if we don't write the constructor try
execute the above code and see the result; THANK u
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How many bytes is a string?
What is the difference between an argument and a parameter?
Can two objects have same hashcode?
What is constructor chaining in java?
What is wrapper class example?
Why java is made?
What are actual parameters?
Can a function return a function?
Why is inheritance used in java?
Is java util regex pattern thread safe?
What is numeric data type?
What is java objectoutputstream?
Difference between default and protected access specifiers?
How many bits is a char?
What is the use of StringTokenizer class?