Top Java Performance Management Interview Questions (2021) | CodeUsingJava
















Most frequently asked Java Performance Management Interview Questions


  1. What is Performance Management?
  2. What are the types of Performance management?
  3. What is Performance Agreement?
  4. What are wrapper classes in Java?
  5. How to reverse a string in Java?
  6. How to take input in Java?
  7. What are constructors in Java?
  8. What are the types of constructors?
  9. What are Java Class?
  10. Give an example of an infinite loop in Java?
  11. What is Enumeration in Java?
  12. How to compare two strings in Java?
  13. How to initialize array in java?
  14. Explain Easy Performance Optimisations in Java?
  15. What is a marker interface?
  16. What are the steps to connect to a database in java?
  17. What is JDBC Connection interface?



What is Performance Management?

Java Performance Management helps in improving organizational performance by developing performance of individuals and teams working with the organization.It provides better results from the organization, teams and individuals by understanding and managing the performance within a framework of planned goals, standards and competence requirements.It is the process of managing an organization's management strategy.

What are the types of Performance management?

There are two types of Performance management:
  • Performance management is not free floating - helps the organization achieving its strategy in the way of helping the organization for surviving and competing in the market.
  • Performance management has no end point - helps the managers for hardworking and go through appraisal with the staff and inproving the performance by the individuals.

What is Performance Agreement?


Performance Agreement


What are wrapper classes in Java?

Wrapper Classes are known as objects which are encapsulating primitive java types such as: boolean, byte, short, char, int, long, float, double. Boolean, Byte, Short, Character, Integer, Long, Float, Double.It is also used for converting any type of data into an objects in Java language.
Example of a Wrapper Classes is upto JDK1.

How to reverse a string in Java?


"String str = ""HelloWorld"";
String reverse(String str){
  StringBuilder sb = new StringBuilder();
  sb.append(str);
  sb.reverse();
  return sb.toString();
}"


How to take input in Java?


"Scanner in = new Scanner(System.in);
      System.out.print(""Please enter hour 1: "");
      int hour1 = in.nextInt();
      System.out.print(""Please enter hour 2: "");
      int hour2 = in.nextInt();
      System.out.print(""Please enter minute 1: "");
      int min1 = in.nextInt();
      System.out.print(""Please enter minute 2: "");
      int min2 = in.nextInt();"
 


What are constructors in Java?

Constructors are used for utilizing objects and have no return and it is automatically known when an Object is created.It is a method whic is used when an object of class is created.For example class Test { Test() { // constructor body } } Here, Test() is a constructor.

What are the types of constructors?

There are two types of constructors:
  • Default Constructor - It is used for initializing the instance variable with default values.Default constructors are the no argument constructors which will be created by default in case you no other constructor is defined by the user.
  • Parameterized Constructor - used for initializing the instance variables with the provided values.It is also known as parameterized constructors.

What are Java Class?

Java Class is a blue print that includes all of our data.
class Abc {
member variables // class body
methods}


Give an example of an infinite loop in Java?

public class InfiniteForLoopDemo
{
public static void main(String[] arg) {
for(;;)
System.out.println("Welcome to Edureka!");
// To terminate this program press ctrl + c in the console.
}
}


What is Enumeration in Java?

Enumeration helps by defining a class type and can have constructors, methods and instance variables.It is also created by using enu keyword.Each enumeration constant is public, static and final by default and also have constructors and cannot instantiate an enum using new and the variables are used and declared in a same way as we do a primitive variable.

How to compare two strings in Java?


"// These two have the same value
new String(""test"").equals(""test"") // --> true

// ... but they are not the same object
new String(""test"") == ""test"" // --> false

// ... neither are these
new String(""test"") == new String(""test"") // --> false

// ... but these are because literals are interned by
// the compiler and thus refer to the same object
""test"" == ""test"" // --> true "


How to initialize array in java?

"int[] arr = new int[5]; // integer array of size 5 you can also change data type
String[] cars = {""Volvo"", ""BMW"", ""Ford"", ""Mazda""};"


Explain Easy Performance Optimisations in Java?


Performance Optimisations


What is a marker interface?

Maker Interface is used as an interface having no data member and member functions, an empty interface is known as Maker Interface.For example:
public interface Serializable{
}


What are the steps to connect to a database in java?

Registering the driver class
Creating connection
Creating statement
Executing queries
Closing connection

What is JDBC Connection interface?

JDBC Connection Interface helps in maintaining sessions with database and is used for transaction management, also provides factory method which returns the instances of Statement, PreparedStatement, CallableStatement and DatabaseMetaData.

Connection interface