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. Float memory size and why "float 45.4;" is illegal

Float memory size and why "float 45.4;" is illegal

Filed under Sophos

The question

How much memory a float takes in Java, why the given declaration is illegal, and whether 45.40 can be stored in a float.

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
  • Detect or resolve a program terminating before completion
  • Does a class with members occupy memory; static keyword
  • Print all prime numbers up to N
โ† Priority queue, heap versus binary tree, BFS and DFS, practical useDetect or resolve a program terminating before completion โ†’

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