What is protected and friendly?
Answer / 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 |
Why a dead thread occurs?
I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose.
What are uses of Hash Code?
Explain about exception propagation?
What are the advantages of packages in java?
What is anti pattern in programming?
Can a private method of a superclass be declared within a subclass?
java program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.
Who developed java?
Difference between error and exception
Explain the differences between public, private, protected and static?
Is java ee a framework?