MCQs > IT & Programming > Java > Which code snippets will convert variables from long to int and int to long?

Java MCQs

Which of the following code snippets will convert variables from long to int and int to long?

Answer

Correct Answer: inti = 5, j = 10, a; double k = 15, l = 20, b; a = (int) (k + l); b = i + j;

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it