/** * Output: String is 'Happy' */public class MainClass { public static void main(String args[]) throws Exception { System.out.printf("String is '%.5s'\n", "Happy Birthday!"); }}