- 
What does the following code print? 
String str = "&8a!L";
System.out.println(str.indexOf("a!L"));
- 
- 3
- 2
- 1
- 0
 
- What does the following code print?
String s1 = "x12";
String s2 = new String("x12");
System.out.println(s1.equals(s2));
- 
- Error
- Exception
- true
- false
 
- What does the following code print?
System.out.println("%wx6".substring(2));
- 
- wx
- x6
- %w
- Exception
 
- What does the following code print?
System.out.println("ab"+"42".repeat(2));
- 
- ab4242
- ab42ab42
- ab422
- Error
 
- What does the following code print?
String s = " ";
System.out.println(s.isBlank()+" "+s.isEmpty());
- 
- false false
- false true
- true true
- true false
 
- Select all correct statements:
 - A stream can represent a data source
- An input stream can write to a file
- A stream can represent a data destination
- An output...
 
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                