JobsJob TrackerJob alerts

Sophos ยท 11 questions

All 11Coding 5
  • Why Python and which is better, Python or Java
  • Priority queue, heap versus binary tree, BFS and DFS, practical use
  • Float memory size and why "float 45.4;" is illegal
  • Detect or resolve a program terminating before completion
  • Does a class with members occupy memory; static keyword
  • Print all prime numbers up to NCoding
  • Check if string is a substringCoding
  • Search a word in a 2D character gridCoding
  • Generate all rotations of a stringCoding
  • Find subarray with given sumCoding
  • Malware types and characteristics
โ† Sophos questions
  1. Interview questions
  2. Sophos
  3. Does a class with members occupy memory; static keyword

Does a class with members occupy memory; static keyword

Filed under Sophos

The question

What static means, whether a class with members occupies memory, and whether importing 1000 library classes does.

No write-up yet. Related questions below have one.

Related Sophos questions

  • Why Python and which is better, Python or Java
  • Priority queue, heap versus binary tree, BFS and DFS, practical use
  • Float memory size and why "float 45.4;" is illegal
  • Detect or resolve a program terminating before completion
  • Print all prime numbers up to N
โ† Detect or resolve a program terminating before completionPrint all prime numbers up to N โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.