current location:Home > Technical Articles > Java
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Template
- The template is one of the behavioral design patterns, an abstract class defines a set of ways/templates to execute its methods. Its subclasses can override/implement these methods but the invocation is to be in the same way as defined by an abstrac
- javaTutorial 579 2024-09-22 22:16:02
-
- Proxy
- Proxy is one of the structural design patterns, It is used to create a surrogate or placeholder object, which is used to control the access of original object. It acts as an intermediary adding extra level of control, and can perform extra actions be
- javaTutorial 358 2024-09-22 22:15:41
-
- State
- The State is one of the Behavioral design patterns, In this the behavior of a class changes based on its state. Key concepts: Context: Class/object whose behavior changes based on state State: abstract state Concrete State: representing various stat
- javaTutorial 631 2024-09-22 22:15:32
-
- Are We Sacrificing Readability for Conciseness in Modern Java?
- Hey everyone! I’ve been working with Java’s lambda expressions lately, and something has been bothering me: are we sacrificing readability for the sake of conciseness? I often see developers cramming everything into a single line, especially when u
- javaTutorial 913 2024-09-22 20:15:38
-
- How To Pass Data To Another Activity
- there are two activities MainActivity.java SettingActivity.java MainActivity.java public void launchSettings(View v){ //Launch a new activity Intent i = new Intent(this,SettingActivity.class); String message = ((Edit
- javaTutorial 578 2024-09-22 20:15:32
-
- @Qualifier Annotation Spring Boot Explained
- The @Qualifier annotation in Spring Boot is used to resolve ambiguity when you have multiple beans of the same type but want to inject a specific one. It helps Spring determine which bean should be autowired when multiple candidates exist. Here are
- javaTutorial 1046 2024-09-22 18:17:32
-
- Launch new Activity(Intent)
- XML file: java file: pub
- javaTutorial 212 2024-09-22 14:15:33
-
- Get Text From Input Field..
- Java Code public class MainActivity extends AppCompatActivity { Button btn; TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.lay
- javaTutorial 286 2024-09-22 14:15:11
-
- Next goal
- I’ve just completed my thesis with an impressive score of 9.1/10, which I’m really proud of. The deadline for submitting to REV-ECIT 2024, with the aim of turning my thesis into a published journal article, is September 30th. I’m currently refining m
- javaTutorial 957 2024-09-22 06:19:38
-
- SSH Tunnelling with Java
- You heave a sigh of relief, as the QA has approved a long-awaited feature for deployment on Prod. However, as a part of the process, it is first deployed on the UAT env, where there are test accounts that can be used to certify the feature works outs
- javaTutorial 687 2024-09-22 06:16:03
-
- How to Disable Button in Android Studio
- *First Way: * button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { view.setEnabled(false); } }); Second way: Without setOnClickListner p
- javaTutorial 273 2024-09-21 22:15:02
-
- Xor of N numbers
- Given an integer number N, find the exor of the range 1 to N exor of 1 ^ 2 ^ 3 ^4 ^.....N; Brute force approach: Tc:O(n) Sc:O(1) public int findExor(int N){ //naive/brute force approach: int val = 0; for(int i=1;i
- javaTutorial 255 2024-09-21 20:15:32
-
- the LivinGrimoire software design pattern
- the LivinGrimoire is a software design pattern, that absorbs skills. 1 line of code is needed to add a skill (similar to the matrix learn scene). advantages of the LivinGrimoire include: can prioritize skills against one another, pause and resume
- javaTutorial 629 2024-09-21 16:20:12
-
- Overlapping methods
- Overlapping methods allow Java to support polymorphism at runtime. Polymorphism is essential in object-oriented programming, allowing a general class to define common methods and subclasses to implement specific versions.
- javaTutorial 529 2024-09-21 14:18:32
-
- A classe Object
- Superclass of all classes: Object is the implicit superclass of all classes in Java. All classes inherit from Object, so a reference variable of type Object can reference any object or array. Methods defined in
- javaTutorial 464 2024-09-21 14:18:05