Difference between Class.forName() and newInstance() in java Class.forName() returns the Class-Type for the given name. Means that it will... 17 Dec Difference between Class.forName() and newInstance() in java Narayanaswamy | class.forName, Java Interview Questions | Java Basics | 0 Difference between Class.forName() and newInstance() in java Class.forName() returns the Class-Type for the given name. Means that it will...
What is the difference between Static Block and Constructor placed in a class? Static Block Static block of... 17 Dec What is the difference between Static Block and Constructor placed in a class? Narayanaswamy | Consturctor, Static Block | Java Basics | 0 What is the difference between Static Block and Constructor placed in a class? Static Block Static block of...
Explain with example to describe when to use abstract class and interface? Consider a scenario where all Cars will... 02 May Explain with example to describe when to use abstract class and interface? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 2 Explain with example to describe when to use abstract class and interface? Consider a scenario where all Cars will...
How can we call the garbage collector? Garbage collector is automatically invoked when the program is being run. It... 29 Apr How can we call the garbage collector? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 How can we call the garbage collector? Garbage collector is automatically invoked when the program is being run. It...
Which algorithm is used by garbage collector Garbage collector uses many algorithms but the most commonly used algorithm... 29 Apr Which algorithm is used by garbage collector? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 Which algorithm is used by garbage collector Garbage collector uses many algorithms but the most commonly used algorithm...
Which part of JVM will allocate the memory for a java program? Class loader sub sytem of JVM... 29 Apr Which part of JVM will allocate the memory for a java program? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 Which part of JVM will allocate the memory for a java program? Class loader sub sytem of JVM...
Why java is suitable for internet? Java is suitable for internet because of two main reasons. It is... 29 Apr Why java is suitable for internet? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 Why java is suitable for internet? Java is suitable for internet because of two main reasons. It is...
What is difference between abstract class and interface? Abstract class may or may not be contain abstract methods... 29 Apr What is difference between abstract class and interface? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 What is difference between abstract class and interface? Abstract class may or may not be contain abstract methods...
What is the difference between static and instance methods? Instance method belongs to the instance of a class therefore... 29 Apr What is the difference between static and instance methods? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 What is the difference between static and instance methods? Instance method belongs to the instance of a class therefore...
What is difference between function and method? A method is a function that is written in a class.... 29 Apr What is difference between function and method? Narayanaswamy | Java Basics, Java Interview Questions | Java Basics | 0 What is difference between function and method? A method is a function that is written in a class....