All fields

“Serialization & Deserialization” in Information Technology

33 questions across 3 technologies.

Information Technology

33 questions in 3 technologies

#QuestionTechnologyTopicLevel
1What is JSON serialization and deserialization, and how do Dart's own built in jsonEncode and jsonDecode functions let you convert genuinely freely between a Dart object and its own corresponding JSON text representation? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationBeginner
2How should you properly handle a genuinely nullable or optional field within your JSON deserialization logic, ensuring your app genuinely does not crash if a specific expected field happens to actually be missing from a given received response? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
3How do you properly convert a decoded JSON Map into a genuinely strongly typed custom Dart model class, rather than continuing to work directly with a considerably less safe raw dynamic Map throughout your entire app? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationBeginner
4How would you use a Class<T> token parameter to work around type erasure when a generic method genuinely needs runtime access to the actual type argument, such as for deserialization or reflection-based instantiation? Java › GenericsJavaGenericsIntermediate
5How does the json_serializable package let you automatically generate the required fromJson and toJson methods for your own Dart model classes, avoiding needing to write that particular repetitive boilerplate code entirely completely by hand yourself? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
6How do you properly handle deserializing a genuinely nested JSON structure, such as an order object that itself contains an embedded nested list of individual line item objects, into a properly correctly structured set of nested Dart model classes? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationIntermediate
7How can you properly implement genuinely custom JSON converters specifically for a given specific type that json_serializable does not already directly know exactly how to properly handle by default, such as converting a DateTime value to and from a specific particular custom string format? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationAdvanced
8What are the practical performance considerations of parsing a genuinely very large JSON response, and how does moving that particular parsing work onto a genuinely separate isolate help meaningfully avoid causing your app's own visible interface to freeze? Flutter › JSON Serialization & DeserializationFlutterJSON Serialization & DeserializationAdvanced
9What are the ordinal() and name() methods on an enum constant, and why is relying on ordinal() for persistence or serialization considered dangerous? Java › EnumsJavaEnumsIntermediate
10How would you implement object serialization using ObjectOutputStream/ObjectInputStream, and what does the Serializable marker interface and serialVersionUID actually do? Java › I/O & NIOJavaI/O & NIOIntermediate
11What is the difference between 'exports' and 'opens' in a module-info.java file, and why does reflection-heavy code (like many dependency injection or serialization frameworks) specifically require the latter? Java › Java Platform Module System (JPMS)JavaJava Platform Module System (JPMS)Intermediate
12Why has Java's built-in serialization (ObjectInputStream.readObject()) been widely criticized as a security risk, and what specific attack does deserializing untrusted data enable? Java › I/O & NIOJavaI/O & NIOAdvanced
13What is the difference between byte streams (InputStream/OutputStream) and character streams (Reader/Writer) in the classic java.io package? Java › I/O & NIOJavaI/O & NIOBeginner
14What is the modern java.net.http.HttpClient (introduced in Java 11), and how does it improve on the older HttpURLConnection for making HTTP requests? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientBeginner
15What is GraphQL, and how does it genuinely differ from a traditional REST API specifically in terms of exactly how a Flutter app actually requests the precise specific data it genuinely needs? Flutter › GraphQL in FlutterFlutterGraphQL in FlutterBeginner
16How do ARB files let you properly organize and store your app's own translated text strings for each individual specific supported language? Flutter › Internationalization & Localization (i18n)FlutterInternationalization & Localization (i18n)Beginner
17What is the http package, and how does it let you actually make a genuinely basic GET request to fetch data from a remote server? Flutter › Networking with HTTP & DioFlutterNetworking with HTTP & DioBeginner
18What is a REST API, and how does a Flutter app typically genuinely interact with one using standard HTTP methods such as GET, POST, PUT, and DELETE? Flutter › REST API Integration in FlutterFlutterREST API Integration in FlutterBeginner
19What is sqflite, and how does it let you actually use a genuinely full relational SQLite database directly within a Flutter app? Flutter › SQLite & Local Databases (sqflite)FlutterSQLite & Local Databases (sqflite)Beginner
20How does the web_socket_channel package let you actually properly connect to a WebSocket server and both send and receive messages using Dart's own familiar Stream and Sink interfaces? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterBeginner
21How would you send a POST request with a JSON request body using HttpClient, and correctly parse a JSON response using a library like Jackson? Java › Java Networking & HTTP ClientJavaJava Networking & HTTP ClientIntermediate
22What is reflection in C#, and what are its most common practical uses and performance trade-offs? C# › Attributes & ReflectionC#Attributes & ReflectionIntermediate
23How should a Flutter app properly validate and sanitize any data received from a server, rather than blindly and unconditionally trusting that all incoming data is genuinely already safe and well formed? Flutter › Flutter App Security Best PracticesFlutterFlutter App Security Best PracticesIntermediate
24How does Dart's simple compute function provide a genuinely convenient, considerably simplified shortcut for running a specific function on a completely separate isolate, without needing to manually manage the full underlying isolate lifecycle yourself? Flutter › Flutter Isolates & MultithreadingFlutterFlutter Isolates & MultithreadingIntermediate
25What specific types of data can actually be sent as a message between two separate isolates in Dart, and why can an arbitrary complex object, such as one containing an active network connection, genuinely not simply be passed directly between them? Flutter › Flutter Isolates & MultithreadingFlutterFlutter Isolates & MultithreadingIntermediate
26How do you properly store a genuinely fully custom Dart object, rather than simply a basic primitive type, within Hive using a generated TypeAdapter? Flutter › Hive & NoSQL Local StorageFlutterHive & NoSQL Local StorageIntermediate
27How can you properly store a genuinely more complex object, such as a List of strings or a Map, using SharedPreferences, given that it only genuinely natively supports fairly simple basic primitive types directly? Flutter › Local Data Storage with SharedPreferencesFlutterLocal Data Storage with SharedPreferencesIntermediate
28How does geocoding let you convert between a genuine human readable street address and its own corresponding precise latitude and longitude coordinates, and what package genuinely provides this particular specific capability? Flutter › Maps & Geolocation in FlutterFlutterMaps & Geolocation in FlutterIntermediate
29How do you actually properly pass genuinely complex data types, such as a Map or a List, between Dart and native code through a platform channel, and what specific limitations genuinely exist regarding exactly what data can actually genuinely be sent? Flutter › Platform Channels (Native Android & iOS Integration)FlutterPlatform Channels (Native Android & iOS Integration)Intermediate
30How do you properly parse and correctly handle several genuinely different types of incoming JSON messages received over a single shared WebSocket connection, such as distinguishing between a genuinely new chat message and a separate typing indicator event? Flutter › WebSockets & Real Time Data in FlutterFlutterWebSockets & Real Time Data in FlutterIntermediate
31How would you use Lombok's @EqualsAndHashCode and @ToString annotations to eliminate equals()/hashCode()/toString() boilerplate, and what specific configuration options handle inheritance and field exclusion correctly? Java › equals(), hashCode() & toString() ContractsJavaequals(), hashCode() & toString() ContractsAdvanced
32How does a marker interface (an interface with no methods at all, like Serializable or Cloneable) work, and what's the modern alternative approach (annotations) for achieving similar 'tagging' purposes? Java › Interfaces & Abstract ClassesJavaInterfaces & Abstract ClassesAdvanced
33How would you correctly serialize and deserialize java.time types (like LocalDateTime or ZonedDateTime) to/from JSON using a library like Jackson, and what common configuration pitfalls arise? Java › Java Date & Time API (java.time)JavaJava Date & Time API (java.time)Advanced