Please tell me what is javac, javax,swing,awt.*; and what is the meaning and differences? According to me there are four access modifiers in java. I want to know the meaning of these four access modifiers and difference.
Please tell me what is javac, javax,swing,awt.*; and what is the meaning and differences? According to me there are four access modifiers in java. I want to know the meaning of these four access modifiers and difference.
javac is an compiler it compiles the actual .java file into byte code formate.javax.swing,awt those are packages the main difference is at using system graphical user interface but swing use it's won graphical user interface.
• Public means you can access the anywhere outside the class also.
• Private mean you can access the variable and methods in the class only.
• Protect variable can access sub class also but not except sub class.
Bookmarks