Review Questions |
3.1 |
Given char c = 'A';
What is the simplest way to convert the character value in c into an int? Select the one correct answer.
|
3.2 |
What will be the result of attempting to compile and run the following class?
public class Assignment { public static void main(String[] args) { int a, b, c; b = 10; a = b = c = 20; System.out.println(a); } } Select the one correct answer.
|
Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.