wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA
Answer Posted / liza
A>Default specifier in java is friendly,but there is no
keyword for it.When we simply write:
class{
........
}
JVM assumes it as having default specifier.Friendly
specifier tells the JVM that this class is accessible to all
the classes but in the same package.
B>Default constructor:it has the same name as that of the
class.It takes no arguments.It is the implicit constructor
and automatically generated in the absence of explicit
constructor.It calls the superclass constructor using super().
C>Default method:There is no default method in java.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the meaning of variable in research?
Can we convert list to set in java?
How do you define a method?
What is a ?
What is bubble sorting in java?
how can you catch multiple exceptions in java?
Is static a singleton?
placement papaers of spring computing technology
What is the difference between error and an exception?
What is the syntax and characteristics of a lambda expression?
What are the different types of inner classes?
What is java used for on a computer?
What is fail fast in java?
What is runtime polymorphism or dynamic method dispatch?
Is char * a string?