Interviewer And Interviewee Guide

Java Classes Interview Question:

Methods declared as static have several restrictions:1) They can only call other static methods.2) They must only access static data.3) They cannot refer to this or super in any way Which of these are TRUE?
A) 1 and 2
B) 1 and 3
C) 2 and 3
D) 1, 2 and 3

Submitted by: Administrator
Ans is :(c)

b'coz static methods can call static as well as non static methods.
Submitted by: Administrator

Read Online Java Classes Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.