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
who can i handle multiple client in RMI
Can you add null to a list java?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What is the benefit of using enum to declare a constant?
Which oo concept is achieved by using overloading and overriding?
What is try-with-resources in java?
What is adapter in java?
Explain the difference between intermediate and terminal operations in java8?
Is singleton class immutable?
How do you override a method?
What is the base class for error and exception?
What do you mean by garbage collection used in java?
What is the purpose of garbage collection in java, and when is it used?
How to instantiate member inner class?
Why java uses the concept of the string literal?