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
How does linkedlist work in java?
Which is better singleton or static class?
Where is jre installed?
What are the types of strings?
Write a function to print Fibonacci series and Tribonacci series?
Are primitives objects?
What is a generic type?
What is multiple inheritance? Is it supported by java?
What is the different types of functions?
What is singleton math?
Explain the difference between abstract classes and interfaces in java?
How do you decide when to use arraylist and linkedlist?
Which class is the superclass of all classes?
Should database connections be singleton?
Can you use this() and super() both in a constructor?