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
Give an example of call be reference significance.
What is an interface in java? Explain
What is indexof?
How does varargs work in java?
What is stack class in java?
What's the access scope of protected access specifier?
What is the difference between an argument and a parameter?
Is arraylist zero based?
What is mean by collections in java?
What is the advantage of preparedstatement over statement?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is package protected in java?
What advantage do java's layout managers provide over traditional windowing systems?
What is function and method in java?
What is difference between variable declaration and definition?