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


Please Help Members By Posting Answers For Below Questions

What's a method in programming?

744


How do you add an element to a hashset in java?

687


Can we create object of inner class in java?

683


What is a byte string?

811


What is object-oriented programming?

785


Can you override static methods?

721


What is string syntax?

797


Can we overload the main() method?

768


How to implement a multithreaded applet?

2418


What are the approaches that you will follow for making a program very efficient?

831


What is a default constraint?

813


What is array length in java?

722


Why do you canvas?

777


What is annotation in java?

776


What is pangram in java?

766