What if I write static public void instead of public static void core java interview.avi

1,940 views · Published 15 September 2012 · 1:56 · Indexed 10 October 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. http://www.interviewdot.com

Welcome to www.InterviewDot.com     How to prepare for Java interview Questions :    
Core Java Interview Questions and Answers :
What if I write static public void instead of public static void?

Program compiles and runs properly.

Public class mainDemo {
 static public  void main(){
  /// will it compile ? -- yes it compiles & runs properly }
}
For more Java Interview questions and answers  - logon to www.InterviewDot.com - India's Top Interview Guide.

More from this channel