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 t type java?
What is meant by main method?
How are the elements of a gridbaglayout organized in java programming?
What is a method in programming?
What is an empty list in java?
How to sort numbers in java without array?
What are design patterns and please explain?
Can we nested try statements in java?
Can we override static methods in java?
What is a function in programming?
What is the difference between Grid and Gridbaglayout?
Why is inheritance used in java?
How do you call a reference in java?
What is ascii format?
What is parameter example?