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
What one should take care of, while serializing the object?
What is Java Reflection API? Why it’s so important to have?
Can we create more than one object singleton class?
Is java a virus?
What is difference between word and integer?
What is e in java?
Can we override the private methods?
What is a return in java?
what is daemon thread and which method is used to create the daemon thread? : Java thread
Why does my function print none?
What is tcp ip in java?
What is annotation in java?
Which package is always imported by default?
Explain different types of thread priorities ?
What are static blocks in java ?