DATA TYPES & LITERALS DATA TYPES: Every variable in java should have some type. Every expression should have some type and every type is strictly defined. Every Assignment should be checked by the compiler for type compatibility Hence java language is considered as strongly typed programming language Java is a not pure object oriented programming language. Because several OOPs features not supported by java. Like multiple inheritances, operator overloading, etc. Moreover we are using primitive datatypes in java which are not objects Primitive Data types: Primitive Datatypes (8) Numeric...
Posts
Showing posts with the label Core Java
- Get link
- X
- Other Apps

ASSIGNMENTS & OPERATORS ASSIGNMENTS Stack and Heap makes easy of understanding of the topics like argument passing, polymorphism, threads, exceptions, and garbage collection. Most of the java programs live on stack and heap memory. i. Instance variables ii. Local variables iii. Objects · Instance variables and objects live on heap · Local variables live on the stack Ex: java program and how it’s various pieces are created and map into the stack and the heap 1. Class Collar{} 2. ...