Computer Science, asked by premakolukulapally, 3 months ago

class Student{

private int htno;

private String sname;

Student()

{

htno=1234;

sname="SNIIT";

}

void display(){

System.out.println("Student Details");

System.out.println(" Ht no: "+htno);

System.out.println("Name : "+sname);

}

}

public class DefaultCon {

public static void main(String[] args) {

Student s=new Student();

s.display();

}

}

can anyone tell the output of above program​

Answers

Answered by hrishitaprisha97
0

Answer:

Omg what's the question I can't understand

Explanation:

Through which program

Similar questions