Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

What is protected and friendly?

Answer Posted / priyavarzhni

Protected: the method of a class os accessed only when the
other class inherits it.
Friendly: no need for inheritance. we can access the methods

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert int to char in java?

195


Do you know why doesn't the java library use a randomized version of quicksort?

217


How many ways can we create the string object?

191


What is mnemonic code?

157


How many bytes is a string?

184






What is difference between adapter class and listener?

174


What is the difference between replace and replace all?

163


What are methods in java?

178


How does java enable high performance?

223


What is the dot operator?

201


Is string a data type in java?

219


what is difference between equals and ==?

207


Write a program based on Java script program.

262


public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }

1451


Define an abstract class with reference to java.

210