Home / Computer Science (page 7)

Computer Science

Computer Science

First Java Program

Java Program – Basic Syntax: public class ClassName { public static void main(String args[]){ Variables; Statements; } } First Java Program: public class FirstJavaProgram { /* This is my first java program. * This will print ‘Hello World’ as the output */ public static void main(String []args) { System.out.println(“Welcome to …

Read More »

Features Of Java Programming

Java Features or Buzz Words: 1. Simple 2. Secure 3.Portable 4.Object-oriented 5.Robust 6.Multithreaded 7.Architecture-neutral 8.Interpreted 9.High performance 10.Distributed 11.Dynamic We discuss about these words how java supported. Simple: java is simple to write program and easy to learn if you understand the basics of OOP. Because it was acquire some …

Read More »

How the data represents in a Computer

Information transformation and storing is the basic nature of the computer. Thus, a computer must be able to take input, process it and produce output. Here a question raised in our mind that is, how is the information/data representation in a computer? The data represents in the computer is in …

Read More »

Interview Question-Java Virtual Machine

When a Java program is compiled it is converted to byte code which is then executed by the Java interpreter by translating the byte code into machine instructions. Java interpreter is part of Java runtime environment. Byte code is an intermediate code independent of any machine and any operating system. …

Read More »

Object Oriented Programming in Java:

Oops is the most powerful technology. Expansion of oop is object oriented programming. The main components of object oriented technology are object & classes, data abstraction, Encapsulation, inheritance and polymorphism. Object: Object oriented means everything is centered on the concept of object. Main idea behind oops is to combine both …

Read More »