Study the method given below and answer the following question:
public Triangle() {
1.ByteBuffer vertexByteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);
2. vertexByteBuffer.order(ByteOrder.nativeOrder());
3. vertexBuffer = vertexByteBuffer.asFloatBuffer();
4. vertexBuffer.put(vertices);
5. vertexBuffer.position(0);
}
Which code line allocates memory from byte buffer?
Correct Answer:
3
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Android Game Development MCQ Questions