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 many bits are in a sentence?
What is JFC?
What happens to a static var that is defined within a method of a class?
Explain about field hiding in java?
Is singleton class immutable?
How many bytes is a unicode character?
Which sorting algorithm is in place?
Can we use synchronized block for primitives?
What’s meant by anonymous class?
How do you sort a string in alphabetical order in java?
Explain inner classes ?
Which data type is a class in java?
What is method in java with example?
What is Garbage Collection in Java
State the main difference between c++ and java?