How can u create the Object of class Without using "New"
opertor?

Answer Posted / seshu godavarthi

when the class is declared as static we can create an
object for the class without instantiating or without using
new operator...we can access the variables or methods in
the class by using the classname

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the drawbacks for singleton class?

514


What are the differences between abstract class and interface?

506


What are different data types?

562


Difference between ‘is-a’ and ‘has-a’ relationship in java?

533


What is == mean?

547






Give few examples of final classes defined in Java API?

698


What is regex used for?

538


What is an argument java?

527


Which methods cannot be overridden in java?

532


Why static functions are used?

562


What is the difference between Grid and Gridbaglayout?

576


What must a class do to implement an interface in java programming?

529


what is meant by HQL?

639


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1504


What do you mean by ordered and sorted in collections in java?

544