What access modifiers can be used for class ?
Answer / Pankaj Tripathi
In Java, the following four access modifiers can be used for classes: 1. public (can be accessed anywhere), 2. protected (can be accessed within the same package and subclasses of other packages), 3. default or no access modifier (can be accessed only within the same package), 4. private (can only be accessed within the same class).
| Is This Answer Correct ? | 0 Yes | 0 No |
Is linked list a linear or non-linear data structure?
1 Answers Akamai Technologies,
Can we write a class without main method in java?
I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?
What is hasnext in java?
What is byte value?
As a developer what steps do you take to improve the performance?
Using callable statement how can you pass out parameters, explain with example?
Is char * a string?
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?
What is synchronization and why is it important in java programming?
what are the uses of Class class and what it returns? explain it with the example code.
What is * argv?