Equilibrium Molecular Dynamics (EMD) simulations are carried out to investigate the effects of wall wettability and nanogap thickness (h) on the constant volume molar heat capacity (Cv) of liquid argon entrapped between two solid copper walls at a fixed temperature of 100 K. Lennard-Jones (LJ) potential is employed to model the interaction between atoms, with nanogap thickness (h) varying between 0.585 nm to 5.85 nm. To characterize interfacial surface wettability as hydrophobic or hydrophilic, the solid-liquid interaction potential has been altered, and its effect on molar heat capacity (Cv) has been evaluated. Simulation results reveal three key findings. As the surface becomes more hydrophobic (i) both maximum heat capacity (Cv,max), and critical nanogap thickness (hc) (nanogap thickness at which maximum heat capacity is obtained) decrease; (ii) the range of nanogap thickness where the heat capacity of nanoconfined liquid surpasses that of bulk liquid diminishes; (iii) the heat capacity of nanoconfined liquid tends to match its bulk equivalent. This anomalous behavior of heat capacity with changing wall wettability is explained by variation in both vibrational (mode of phonon transportation) and configurational (density oscillation near the wall, thermal boundary resistance, molecular mobility, etc.) contribution of nanoconfined liquid.