Modifiers for Java Variables and Methods

135 views · Published 25 January 2014 · 2:57 · Indexed 23 September 2026

Channel: Interview DOT · 2014 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. What are the Modifiers for Java Variables and Methods

private final int finalVariable=0; 
  //PUBLIC
  public int publicVariable;
   //PROTECTED
  protected int protectedVariable;
  //PRIVATE
  private  int privateVariable;
  //STATIC
  private static int staticVariable;
  //TRANSIENT
  private transient int transientVariable;
  //VOLATILE
  private volatile boolean volatileVariable;
What are the Modifiers for Java Variables and Methods

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel