How many bytes are there?



How many bytes are there?..

Answer / Jay Prakash Mani

In Java, the number of bytes depends on the data type. For example, char and boolean types occupy 2 bytes (16 bits) while int occupies 4 bytes (32 bits). However, the exact number of bytes can vary depending on the system's byte representation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain the access modifiers for a class, method and variables?

1 Answers   Global Logic,


What are the actions that can occur when a thread enters blocked state?

1 Answers  


what do you mean by java annotations?

1 Answers  


What is a numeric literal?

1 Answers  


Can we override protected method in java?

1 Answers  


What is slash r?

1 Answers  


we know that every java prog must follows OOPS Principles. Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation? class a{ public static void main(String args[]){ System.out.println("Hello World"); } }

3 Answers  


Is hashmap thread safe?

1 Answers  


Will minecraft java be discontinued?

1 Answers  


When should you make a function static?

1 Answers  


What do you understand by access specifiers in Java?

1 Answers   Genpact,


What is the difference between preemptive scheduling and time slicing?

1 Answers  


Categories