can we declare private class in java file?

Answer Posted / shreya sarker

Within a static method,we can only call another static
method.Is it true?

Is This Answer Correct ?    29 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between an object-oriented programming language and object-based programming language?

767


Why pass by reference is not possible in java?

720


What does void * mean?

720


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

1913


What are scriptlets?

837


What is final method in java?

751


Can a private method be declared as static?

789


What are annotations in java?

844


What is the advantage of preparedstatement over statement?

827


How will you communicate between two applets?

865


what happens when a thread cannot acquire a lock on an object? : Java thread

816


What does sprintf return?

810


Why java does not support pointers?

783


What is a Transient Object?

830


Why are getters and setters used?

784