Multi-catch syntax

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
saregg
Posts: 20
Joined: Fri May 01, 2020 11:27 am
Contact:

Multi-catch syntax

Post by saregg »

Code: Select all

public class Test
   { 
     private static String s ; 
     public static void main(String[] args) 
          { 
          try{ 
             	System. out .println( s .length()); 
             }
           catch (NullPointerException | RuntimeException ex) { 
           		System. out .println( "DONE" ); 
           	} 
           } 
   }
Are these in for JAVA SE-11 lvl-1 exam ? give a brief about this

admin
Site Admin
Posts: 10403
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Multi-catch syntax

Post by admin »

No, multi-catch is not on OCP Java 11 Part 1 1z0-815 exam.

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests