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


Please Help Members By Posting Answers For Below Questions

What is difference between filereader and bufferedreader?

517


What are three types of loops in java?

574


How do you remove an object from an arraylist in java?

448


What are java packages? What's the significance of packages?

610


Explain a situation where finally block will not be executed?

561






What is r in java?

583


What is replaceall in java?

532


Why isn’t there operator overloading?

574


Write a program to show whether a graph is a tree or not using adjacency matrix.

580


What are the Main functions of Java?

614


Can size_t be negative?

597


Which package is always imported by default?

535


How listener identify that the event came from a particular object?

1452


How do you read a char in java?

445


Why lambda expression is used in java?

555