We report the results of our optical speckle interferometric observations of the nearby triple system GJ 795 performed with the 6 m BTA telescope with diffraction-limited angular resolution . The three components of the system were optically resolved for the first time . Position measurements allowed us to determine the elements of the inner orbit of the triple system . We use the measured magnitude differences to estimate the absolute magnitudes and spectral types of the components of the triple : M _ { V } ^ { Aa } =7.31 \pm 0.08 , M _ { V } ^ { Ab } =8.66 \pm 0.10 , M _ { V } ^ { B } =8.42 \pm 0.10 , Sp _ { Aa } \approx K5 , Sp _ { Ab } \approx K9 , Sp _ { B } \approx K8 . The total mass of the system is equal to \Sigma \mathcal { M } _ { AB } =1.69 \pm 0.27 \mathcal { M } _ { \odot } . We show GJ 795 to be a hierarchical triple system which satisfies the empirical stability criteria .