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 |
What is parameter example?
program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called
Can we call the constructor of a class more than once for an object?
Do you know how to reverse string in java?
What is the use of singleton?
Does garbage collection guarantee that a program will not run out of memory?
What is anagram word?
Is it possible to write static method in abstract class? justyfy your answer?
What is the difference between double and float variables in java?
How can we achieve thread safety in java?
class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?
how to accept integer array in java