Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how many access specifiers are available in java

Answers were Sorted based on User's Feedback



how many access specifiers are available in java..

Answer / anjani kumar jha

There are four access specifiers are available in java

Public-----------access to all

Private---------limited to class only

Protected---------limited to sub package of class

Default------------limited to same package

Is This Answer Correct ?    52 Yes 10 No

how many access specifiers are available in java..

Answer / hani

4

Is This Answer Correct ?    28 Yes 7 No

how many access specifiers are available in java..

Answer / ashish shinkar

there are 4 access specifier in java
1: private
2: default
3: protected
4: public

Is This Answer Correct ?    15 Yes 10 No

how many access specifiers are available in java..

Answer / geethanjali

4

Is This Answer Correct ?    6 Yes 3 No

how many access specifiers are available in java..

Answer / kunal

There are atleast 11 access specifiers..
public , private , protected , default , final , volatile, static,transient, abstract, native, synchronized in java

Is This Answer Correct ?    6 Yes 5 No

how many access specifiers are available in java..

Answer / crimohan

in java only access modifiers are present.there is no access specifiers in java

Is This Answer Correct ?    1 Yes 0 No

how many access specifiers are available in java..

Answer / gyana

there are four access specifier in java.they are

public - means the the properties of class is accessable
to all other classes.
private- means the the properties of class cannot
accessable to any other classes.
protected- means the properties of class will acessed only
to its subclasses,not subclasses of its subclasses.
no access - mean you can access it with in the class.

Is This Answer Correct ?    6 Yes 6 No

how many access specifiers are available in java..

Answer / umanath

Namely 4, but functionally 5
public--------------access to all

protected-----------limited to any class in same package and
sub class of any package

friendly(default)---limited to same package only

private protected---limited to sub classes of any package only

private-------------limited to same class only

Is This Answer Correct ?    7 Yes 7 No

how many access specifiers are available in java..

Answer / suresh

4

Is This Answer Correct ?    3 Yes 4 No

how many access specifiers are available in java..

Answer / joshua deku

There are 4 access specifiers in java
1.public
2.private
3.protected
4.private

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

Why does java not support pointers?

0 Answers  


What is meant by object?

0 Answers  


How to instantiate static nested classes in java?

0 Answers  


How do you use final keywords and final variables in Java?

2 Answers  


How to display all the prime numbers between 1 and 100

0 Answers  


what is anonymous class in java?

0 Answers  


why HashTable not allow null key and value

2 Answers   Crimson Logic,


What is final, finally, finalize?

0 Answers  


Which Math method is used to calculate the absolute value of a number?

3 Answers   Accenture,


What are the advantages of packages in java?

5 Answers  


What are event-delegation model and event-inheritance model? Which is best?

1 Answers  


33. try { 34. // some code here 35. } catch (NullPointerException e1) { 36. System.out.print(”a”); 37. } catch (RuntimeException e2) { 38. System.out.print(”b”); 39. } finally { 40. System.out.print(”c”); 41. } What is the result if a NullPointerException occurs on line 34? 1 c 2 a 3 ab 4 ac

5 Answers  


Categories