Tag: programming languages

Questions Related to programming languages

  1. login com.tcs.login.LoginServlet login /utils/L

  2. com.tcs.login.LoginServlet /utils/LoginServlet

  3. com.tcs.login.LoginServlet /utils/LoginServlet

  4. login com.tcs.login.LoginServlet login /utils/LoginServlet


Correct Option: A
  1. login com.tcs.login.LoginServlet mailId [email protected]

  2. login com.tcs.login.LoginServlet mailId [email protected]

  3. login com.tcs.login.LoginServlet mailId

  4. login com.tcs.login.LoginServlet mailId [email protected]


Correct Option: A
  1. The signature of a method is the name of the method the type of its return value.

  2. The signature of a method is the name of the method and the names of its parameters.

  3. The signature of a method is the name of the method and the data types of its parameters.

  4. The signature of a method is the name of the method, its parameter list, and its return type.


Correct Option: D
  1. The same program logic can be used with objects of several related types.

  2. Variables can be re-used in order to save memory.

  3. Constructing new objects from old objects of a similar type saves time.

  4. Polymorphism is a dangerous aspect of inheritance and should be avoided.


Correct Option: A