Home Tutorial Java Scjp Part1 SCJP Module-1 Question-14


Share on Google+Share on Google+
SCJP Module-1 Question-14
Posted on: July 8, 2010 at 12:00 AM
This program checks your knowledge of Java program and also prepare you for SCJP examination.

Given a sample code:

1 class ListState {
2 public enum State{DELHI, MUMBAI, MADRAS}

3 public class Sample4 {
4 public static void main(String args[]) {
5  // Place the statement here

What statement you place at line number 5 for successful compilation and execution of above code?

(1)    ListState state = ListState.DELHI;

(2)    ListState.State state = ListState.State.MADRAS;

(3)    ListState state = MUMBAI;

(4)    ListState state = ListState.MUMBAI;




Related Tags for SCJP Module-1 Question-14:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: July 8, 2010

Recommend the tutorial

Advertisements Advertisements