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 unicode full form?
What does the three dot emoji mean?
Can we have static methods in an interface?
When to use runnable interface vs thread class in java?
What is the impact of declaring a method as final?
What is exception propagation?
How can we make copy of a java object?
Which category the java thread do fall in?
what are different ways in which a thread can enter the waiting state? : Java thread
What is finally block?
How do you generate random numbers in java?
Wha is the output from system.out.println(“hello”+null); ?
What is the final access modifier in java?
How do you delete a list in java?
What is difference between path and classpath?