System.out.println("somestring"); It will create any object
or not
Answer Posted / manish pal
yes it create 2 objects
first for string literal
second for print stream
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Explain the purpose of garbage collection in Java?
What are the benefits of operations?
How do you check if two given string are anagrams?
What are different types of inner classes ?
What is the relationship difference the canvas class and the graphics class?
How do you delete a list in java?
What is equlas() and hashcode() contract in java? Where does it used?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is the maximum size of hashmap in java?
What is == mean?
Can a top level class be private or protected?
Which of the following classes will have more memory allocated?
Can we create a class inside a class in java?
What is a for loop in java?
What is the default value of the local variables?