About CSV File CSV file abbreviation is comma separated value which means that CSV file we can open in the notepad with comma separated values by deault. The CSV file name contains extension is .csv and it is very light weight format and flexible format we can open it in the different text editor tool […]
Explain with example to describe when to use abstract class and interface?
Explain with example to describe when to use abstract class and interface? Consider a scenario where all Cars will have 4 tyres and other features can be different. In this case any subclass of Car has to have 4 tyres. This is a case where abstract class will be used and a default implementation for […]
How can we call the garbage collector?
Which algorithm is used by garbage collector?
Which part of JVM will allocate the memory for a java program?
Why java is suitable for internet?
What is difference between abstract class and interface?
What is difference between abstract class and interface? Abstract class may or may not be contain abstract methods but a class should be called as abstract when it contains at least one abstract method. It can also contain n numbers of concrete method. Interface can contain only abstract ( non implemented) methods. The abstract […]
What is the difference between static and instance methods?
What is the difference between static and instance methods? Instance method belongs to the instance of a class therefore it requires an instance before it can be invoked, whereas static method belongs to the class itself and not to any class instance so it doesn’t need an instance to be invoked. Instance methods use dynamic […]