434
Subscribers
+124 hours
No data7 days
No data30 days
Posts Archive
𝗳𝗶𝗻𝗮𝗹 𝗸𝗲𝘆𝘄𝗼𝗿𝗱
==============================
⏺ 𝘃𝗮𝗿𝗶𝗮𝗯𝗹𝗲 (can’t change, constant)
⏺ 𝗺𝗲𝘁𝗵𝗼𝗱(can’t override)
⏺ 𝗰𝗹𝗮𝘀𝘀 (can’t inherit)
𝗦𝘁𝗮𝘁𝗶𝗰 𝗸𝗲𝘆𝘄𝗼𝗿𝗱
==============================
𝗦𝘁𝗮𝘁𝗶𝗰 𝗩𝗮𝗿𝗶𝗮𝗯𝗹𝗲 : belong to class and get memory only once in class area at the time of class loading.
𝗦𝘁𝗮𝘁𝗶𝗰 𝗠𝗲𝘁𝗵𝗼𝗱 : belong to class, cant use non static variables and methods inside if it is not 𝗸𝗻𝗼𝘄𝗻
𝗦𝘁𝗮𝘁𝗶𝗰 𝗕𝗹𝗼𝗰𝗸 : initialize static variables and executed before main method at the time of class loading.
𝗦𝘁𝗮𝘁𝗶𝗰 𝗜𝗺𝗽𝗼𝗿𝘁 : access any static member of a class directly. There is no need to qualify it by the class name in program.
Which protocol is primary used to secure communication between a web browser and a server?
Top coding interview questions ⬇️
𝗪𝗵𝗮𝘁 𝗶𝘀 𝘁𝗵𝗲 𝗱𝗶𝗳𝗳𝗲𝗿𝗲𝗻𝗰𝗲 𝗯𝗲𝘁𝘄𝗲𝗲𝗻 𝗮𝗻 𝗶𝗻𝘀𝘁𝗮𝗻𝗰𝗲 𝗺𝗲𝘁𝗵𝗼𝗱 𝗮𝗻𝗱 𝗮 𝘀𝘁𝗮𝘁𝗶𝗰 𝗺𝗲𝘁𝗵𝗼𝗱?
=============================
An instance method operates on an instance of a class and can access instance variables and methods. A static method belongs to the class itself and can only access static variables and methods.
𝗘𝘅𝗽𝗹𝗮𝗶𝗻 𝘁𝗵𝗲 𝗰𝗼𝗻𝗰𝗲𝗽𝘁 𝗼𝗳 𝗶𝗻𝗵𝗲𝗿𝗶𝘁𝗮𝗻𝗰𝗲.
============================
Inheritance is a mechanism in object-oriented programming where one class inherits properties and behaviors from another class. The class being inherited from is called the superclass or base class, while the class inheriting is called the subclass or derived class. Inheritance allows for code reuse and promotes code organization.
Which keyword is used to define a constant variable in Java
Which keyword is used to define a class-level constant variable in Java
𝗤. 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗮 𝗽𝗼𝗿𝘁 𝗻𝘂𝗺𝗯𝗲𝗿?
==============================
A port number is a way to identify a specific process to which an internet or other network message is to be forwarded when it arrives at a server.
⏺ It directs messages to the correct application on a server.
⏺ Each network device has standardized ports with assigned numbers.
⏺ Port numbers range from 0 to 65535.
⏺ Common examples: port 80 for web (HTTP) and port 443 for secure web (HTTPS).
What is the default port number for Spring boot Applications?
𝗝𝗮𝘃𝗮 'Object' 𝗖𝗹𝗮𝘀𝘀 𝗠𝗲𝘁𝗵𝗼𝗱𝘀 ⬇️
http://youtube.com/post/UgkxEZL87Idc01khwEDzPB4k05XPb2yDxsXJ?si=-kI5RIF_𝗙𝗩𝗔𝟵𝗹𝗛𝗚𝗴
