wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA
Answer Posted / rohit
default specifier specifies access level of class
eg:-
class A{
}
this is default
default constructor is constructor with same name as of
class and no arguments
eg: class A{
A()
}
there is no default method in java
| Is This Answer Correct ? | 22 Yes | 5 No |
Post New Answer View All Answers
What is externalizable interface?
What is the final field modifier?
Can a main method be declared final?
How the interruptible method gets implemented?
What are the different http methods?
Explain different ways of creating a thread?
Why unicode is important?
What is the meaning of variable in research?
What are constants and how to create constants in java?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
Explain thread life cycle in java?
Can we overload final method in java?
What happens if I remove static from main method?
Difference between throw and throws?
What happens if we don’t define serial version uid?