public class Main{
    String name;
    int rollno;
    int age;
    void info(){
        System.out.println("Name: "+name);
        System.out.println("rollno: "+rollno);
        System.out.println("age: "+age);
        
    }
    public static void main(String[] args){
        Main student=new Main(); // create object 
        student.name="Leela";
        student.rollno=15;
        student.age=21;
        student.info();
        
    }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: