whats is the use of final,in which situation final can be
used in the application?

Answer Posted / muralisankar

you can prevent a class from inheritance.
You can prevent a method from overriding.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are true and false keywords?

569


What is the synonym of string?

531


What is the memory leak in java?

522


What is null object in java?

572


What are advantages of exception handling in java?

581






Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2230


How do you reverse a list?

550


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1601


What is nested loop? What is dangling else condition in it?

572


Does hashset allow duplicates in java?

580


What does s mean in regex?

549


How to compare two strings in java program?

669


What is a constructor overloading in java?

519


Where are variables stored?

548


How do you test a method for an exception using junit?

527