what is the logic inside any default constuctor?
Answers were Sorted based on User's Feedback
Answer / harish
in defult constructor there is a statment super(); for
calling to super class constructor.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / meena
The default constructor initializes all the variables
declared inside the program to default values.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is math floor in java?
What methods are used to get and set the text label displayed by a button object?
What is argument in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Explain Global variables in Packages?
10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;
What is finalize()? Is finalize() similar to a destructor?
How dead lock situation occurs in java and how you can identify it?
Explain java heap space and garbage collection?
Different types of modifiers?
What are the differences between getting and load method?
How do you write a scanner class in java?