who can we create the object of a class? in how many ways we
can create it (max 5)
Answer Posted / ravi jain
through
1) String s = "This is my Object";
2) String s1 = s.subString(1,8);
3) int[] arr = {12,45,12}; every array is an object.
4) String s2 = s + s1;
these all are also create new instances.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is compiler and what its output.
What is a hashmap used for?
Why you should not use singleton?
What are methods?
How many days will it take to learn java?
What is meant by call by reference?
what is mena by object block any what is the use of that
What is the super void?
Difference between abstract and concrete class ?
How do you create a reference in java?
What is api in java?
What is the format specifier?
What flag up means?
What exactly is methodology?
What is the largest data type in java?