how to open a notepad in java? by package com.w3spoint; import java.io.IOException; public class Test { public static void main(String args[]){ try { Runtime.getRuntime().exec("notepad.exe"); } catch (IOException e) { e.printStackTrace(); } } }package com.w3spoint; import java.io.IOException; public class Test { public static void main(String args[]){ try { Runtime.getRuntime().exec("notepad.exe"); } catch (IOException e) { e.printStackTrace(); } } } Please Share Categories Interview questions can a constructor call another constructor java?Static variable in java