Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: If 50 classes access is public and 20 classes default then what is the number of . java files?

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    4
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default If 50 classes access is public and 20 classes default then what is the number of . java files?

    50 classes access is public and 20 classes default… what is the number of . java files……

    the answers are
    1)20
    2)70
    3)51
    4)50


  2. #2
    Junior Member
    Join Date
    May 2009
    Location
    Mumbai/ Bombay - India
    Posts
    15
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Please solve this multiple choice question.. its urgent...

    The number of .java files 50. However the number of .class files would be 70 (provided that there are no inner classes).

  3. The Following User Says Thank You to jacinto For This Useful Post:

    abhishekraok2003 (May 16th, 2009)

  4. #3
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    Default Re: Please solve this multiple choice question.. its urgent...

    Hello abhishekraok2003, welcome to the Java Programming Forums

    These links will help you clear up any doubts.

    Java Programming/Access Modifiers - Wikibooks, collection of open-content textbooks


    Controlling Access to Members of a Class (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  5. The Following User Says Thank You to JavaPF For This Useful Post:

    abhishekraok2003 (May 16th, 2009)

Similar Threads

  1. Java error "java.lang.StackOverflowError"
    By sanatkumar in forum Exceptions
    Replies: 2
    Last Post: July 7th, 2009, 02:40 PM
  2. Replies: 4
    Last Post: June 10th, 2009, 01:04 AM
  3. Which interface gives more control on serialization of an object?
    By abhishekraok2003 in forum Java Theory & Questions
    Replies: 1
    Last Post: May 16th, 2009, 10:17 AM
  4. Replies: 1
    Last Post: May 4th, 2009, 06:30 AM