GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 481 of 492    Print  
Access Specifier
What will happen if same access specifier repeats more than once within a class?


  
Total Answers and Comments: 4 Last Update: June 14, 2008     Asked by: naggeek 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: interviewprep9
 
Can you please make the question clear?

Above answer was rated as good by the following members:
vsimha4
June 11, 2008 02:57:44   #1  
Santosh N Member Since: June 2008   Contribution: 3    

RE: Access Specifier
Within the same class when there are more than one access specifier, the latest access specifier i.e. the access specifier specified in the end would be considered as final
 
Is this answer useful? Yes | No
June 11, 2008 03:01:54   #2  
Santosh N Member Since: June 2008   Contribution: 3    

RE: Access Specifier
WE can access java  values in javascript by creating an object of the java class and then using the getters and setters.However the java class file needs to be imported if we have to create and object of the java class file and use getters and setters on this.
 
Is this answer useful? Yes | No
June 11, 2008 04:02:20   #3  
kiranmai.kasturi Member Since: June 2008   Contribution: 4    

RE: Access Specifier

Means where, while creating class like " public private class <class-name>{...}" or declaring properties..question is not clear. If it is while declaring class, it wont accept mutiple access specifiels as it accept public, abstract or final, give compiler error


 
Is this answer useful? Yes | No
June 14, 2008 13:48:23   #4  
interviewprep9 Member Since: June 2008   Contribution: 10    

RE: Access Specifier
Can you please make the question clear?
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 1Overall Rating: +1    


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape