What is a valid statement about Apex classes and interfaces in java? - ProProfs Discuss
Advertisement

What is a valid statement about Apex classes and interfaces in java?

What is a valid statement about Apex classes and interfaces in java?

Change Image    Delete

1. The default modifier for a class is private.
2. Exception classes must end with the word exception.
3. A class can have multiple levels of inner classes.
4. The default modifier for an interface is private.

Asked by Kevindotcar, Last updated: Dec 13, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

Ken Wilson

Ken Wilson

Want to learn new things and share my knowledge

Ken Wilson
Ken Wilson, Marketing Analyst, MBA, Miami

Answered Dec 14, 2018

This question has two answers: both 1 and 2 are correct. When considering which of the choices listed above that would be a valid statement about Apex classes and interfaces in java, the default modifier for a class is private is the answer that jumps out to me first since the default modifier for inner classes are private.

The second answer which is also a valid statement about Apex classes and interfaces in Java is that exception classes must end with the word exception. This is the way for the program to be able to identify that a class is an exception class and not an ordinary class. You can learn all about this topic and find answers to other questions in the Java section.

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Dec 16, 2016

The default modifier for a class is private.
Exception classes must end with the word exception.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.