Which of the following is true?

Question:
 Which of the following is true?

1.Static methods cannot be overloaded.

2.Static data members can only be accessed by static methods.

3. Non-static data members can be accessed by static methods.

4.Static methods can only access static members (data and methods)

Posted Date:-2022-07-04 03:54:45


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!