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 are the two parts of a conditional statement?
What do you mean by object?
Can a serialized object be transferred via network?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
Which is easier netbeans or eclipse?
What does it mean that a method or field is “static”?
What is an escape character in java?
What is difference between identifier and variable?
What is the difference between stringbuffer and stringbuilder?
Is ++ operator thread-safe in java?
What is an empty class? What functionality does it offer in Java?
How many bytes is a string java?
What is the use of arraylist in java?
What is unicode used for?
How do you compare two objects?