How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.
Answer Posted / xxxx
with out new operater we can create object. Because the
String varible is taken as an object in java, which is
created with out new operater.
ex.
String str="xxxx";
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What is the hashcode () and equals () used for?
What is multi-catch block in java?
What carriage return means?
what is synchronization and why is it important? : Java thread
What are the three parts of a lambda expression? What is the type of lambda expression?
In the below example, how many string objects are created?
What are the different types of collections in java?
What is the length of a string?
Does isempty check for null?
Which are the two subclasses under exception class?
What is an empty list in java?
Can we declare a class as static?
What is function overriding and overloading in java?
What is Mutex (Mutual Exclusion Object) ?
How do you achieve singleton?