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
If a variable is declared as private, where may the variable be accessed?
What are some characteristics of interference class?
Do I need java for windows 10?
What is Session reduplication and how its done?
How do you read a char in java?
What is the r character?
What is treemap in java?
What is t in generics in java?
Explain exception chaining in java?
How many types of variables are there?
Can you achieve runtime polymorphism by data members?
What does replaceall do in java?
What are different types of inner classes ?
Why do I need to declare the type of a variable in java?
Are arrays classes in java?