Examveda
Examveda

Which one of the following methods in the exception class, is used to get a nested exception object?

A. getPrevious()

B. getCode()

C. getFile()

D. getLine()

Answer: Option A

Solution(By Examveda Team)

getCode() – Get the code integer that was passed to the constructor. getFile() – Get the file in which the exception was generated. getLine() – Get the line number at which the exception was generated.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept