For how many hours the validity of the ticket remains -
In the situation mentioned above, you can absolutely do this thing, but there are some conditions in this, which you have to take care of a little. As per the Railways Act, 1989, there is some validity of second class train ticket. As per the rules, if your journey is 199 km or less, then the validity of the ticket will be 3 hours and if the distance is more than that, then the validity will be 24 hours.
People living in these two places of Delhi are going to suffer bat-bat, know what is the big deal
Wait for the next train to arrive

If you have a second class ticket and there is no legroom in the general coach, then according to the Railway Act, you will have to wait till the next train arrives, as this ticket is for travel, on a particular train Not reserved for
When asked for a ticket, the couple left the child at the airport, before committing such a sin, know till what age the plane ticket is valid.
Travel in sleeper class on general ticket –

If there is no alternative to another train within the validity limit of the ticket, then you can also travel in sleeper class. But yes you cannot sit in any vacant seat, you do not have the right to do so. According to Section 138 of the Railway Act, as soon as you board the train, the TTE should first tell you the reasons for which you have come in the sleeper class.
Where did the train reach? Is your train coming late or where is it? Information as you want, you can know with just one click
Penalty will have to be paid for non-compliance

If any seat is vacant, TTE will make you sleeper class ticket by taking the difference of both the classes of travel ticket. If no seat becomes vacant, you will be allowed to travel till the next station. Even after this, if you do not go out of the sleeper class, then you will have to pay a fine of Rs 250.
What will happen if the fine is not paid –

If you do not have 250 rupees, then TTE will make you a challan, you can also deposit this fine in the court. Note, unless you are able to board the general coach, no one can remove you from the train. In case of failure to pay the fine, your goods will also not be confiscated.
read this also : Do something like this to book a full train coach for marriage, relatives are happy and you will not have to pay extra money