Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is implicit conversion?
Think of how an `int` can be assigned to a `long`.
Name a method from a wrapper class.
What methods help convert from String to primitives?
What type of conversion is performed when an int is assigned to a long?
Think about whether it requires casting.
True or False: You need to cast a double to an int to assign it directly.
Remember the rules about data types and conversions.
Write a Java program that uses both implicit and explicit type conversions. Explain any potential data loss that occurs.
Use both int and double in your program with conversion.
Create a scenario where a wrapper class method is useful in data processing. Provide an example.
Consider how user input would be processed.
5 more questions in this section. Enroll free to practise them all.
Enroll free