[SalesForce] Execute anonymous(Eclipse), Developer console and Query editor

Does the Query Editor or Execute Anonymous (either via the Eclipse IDE or the Developer Console) run in System Mode or User Mode?

Best Answer

I did a bit of searching around for official reference, and there is one in the Apex Developer Guide - Using the with sharing or without sharing Keywords:

In system context, Apex code has access to all objects and fields— object permissions, field-level security, sharing rules aren’t applied for the current user. This is to ensure that code won’t fail to run because of hidden fields or objects for a user. The only exceptions to this rule are Apex code that is executed with the executeAnonymous call and Chatter in Apex. executeAnonymous always executes using the full permissions of the current user. For more information on executeAnonymous, see Anonymous Blocks.