hasmenu.blogg.se

Elements of programming interviews in java pdf download
Elements of programming interviews in java pdf download








How is the creation of a String using new() different from that of a literal? Although inheritance is a popular OOPs concept, it is less advantageous than composition. Contiguous memory locations are usually used for storing actual values in an array but not in ArrayList. Can you call a constructor of a class inside the another constructor? Will the finally block get executed when the return statement is written at the end of try block and catch block as shown below? Is it mandatory for a catch block to be followed after a try block? How does an exception propagate in the code? What do you understand by Object Cloning and how do you achieve it in Java? What happens if there are multiple main methods inside one class in Java? What happens if the static modifier is not included in the main method signature in Java?

#ELEMENTS OF PROGRAMMING INTERVIEWS IN JAVA PDF DOWNLOAD HOW TO#

How to not allow serialization of attributes of a class in Java? Which among String or String Buffer should be preferred when there are lot of updates required to be done in the data? Java works as “pass by value” or “pass by reference” phenomenon? What are the differences between constructor and method of a class in Java? What are the different ways of threads usage? What is the importance of reflection in Java? What are the differences between HashMap and HashTable in Java? What are the differences between JVM, JRE and JDK in Java? Why is the character array preferred over string for storing confidential information? What makes a HashSet different from a TreeSet? In Java, static as well as private method overriding is possible. Using relevant properties highlight the differences between interfaces and abstract classes. How would you differentiate between a String, StringBuffer, and a StringBuilder? Apart from the security aspect, what are the reasons behind making strings immutable in Java? What part of memory - Stack or Heap - is cleaned in garbage collection process?

elements of programming interviews in java pdf download

What is the main objective of garbage collection? Do final, finally and finalize keywords have the same function? Explain the use of final keyword in variable, method and class. A single try block and multiple catch blocks can co-exist in a Java Program. Comment on method overloading and overriding by citing relevant examples.

elements of programming interviews in java pdf download

Briefly explain the concept of constructor overloading How is an infinite loop declared in Java? Can you tell the difference between equals() method and equality operator (=) in Java? What do you understand by an instance variable and a local variable?

elements of programming interviews in java pdf download

Why is Java not a pure object oriented language? Why is Java a platform independent language?








Elements of programming interviews in java pdf download