Which of the following are correct?1. import com.acme;package - ProProfs Discuss
Topics-
Products +
     

Which of the following are correct? 1. import com.acme;package com.acme.common;class Dog() {} 2.public static final VAR=1000;import com.acme; class Dog() {} 3.public static final VAR=1000;class Dog() {} 4. package com.acme.common; import com.acme; public class Dog() { }class Cat {}



A. 2 and 3
B. 1, 2 and 3
C. 1 and 4
D. 2 and 4
E. 4 only
Asked by Medric, Last updated: Dec 05, 2017

This question is part of

JSCP Quiz

+ AnswerRequest Answer