Can we define private and protected modifiers for variables in interfaces?
No Answer is Posted For this Question
Be the First to Post Answer
public class Base { public void myMethod(int a,intb) {} } // Uses myMethod and then hides it. public class DerivedOne extends Base { private void myMethod(int a,int b); } will this compile or not .yes or no. why
Which java version is latest?
Is it possible to compare various strings with the help of == operator?
What is a default constraint?
Write a program to find maximum and minimum number in array?
What is wrapper class example?
What is the use of bin and lib in JDK?
Which arithmetic operations can result in the throwing of an arithmeticexception?
What is type inference in java8?
What is navigable map in java?
What is difference between iterator and enumeration in java?
What are the five major types of reference sources?