Results 1 to 2 of 2

Thread: Access modifiers in java

  1. #1
    Davismoore is offline Senior Member
    Join Date
    Dec 2009
    Posts
    284
    Rep Power
    3

    Default Access modifiers in java

    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.

  2. #2
    JacksonPerez is offline Banned
    Join Date
    Dec 2009
    Posts
    274
    Rep Power
    0

    Default

    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.

Similar Threads

  1. Oracle suggest student coders not including charge access to Java One
    By Dylan Simons in forum Latest Hardware News
    Replies: 0
    Last Post: 09-02-2010, 08:20 AM
  2. I need some JAVA help
    By GonzalezBrown in forum Programming
    Replies: 0
    Last Post: 08-09-2010, 02:11 PM
  3. Configuring Access Point Ligway for Internet access
    By Kaiven Boycott in forum General Networking
    Replies: 1
    Last Post: 02-05-2010, 11:40 AM
  4. Java VS Dot Net
    By CarterWatson in forum Programming
    Replies: 1
    Last Post: 02-01-2010, 05:39 PM
  5. Replies: 0
    Last Post: 10-12-2009, 05:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48