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 Gang of four design patterns
What is rule of accessibility in java?
What does the “static” keyword mean? Can you override private or static method in java?
Explain the difference between map and flatmap stream operation?
Why we override equals() method?
What is a function argument in java?
What is difference between null and void?
What does jre stand for?
What is the hashcode () and equals () used for?
Which collection allows duplicate values in java?
How do you write a conditional statement?
Why vector is used in java?
Can we override private method?
Difference between a process and a program?
What are the four versions of java?